Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryUsing AttributesUsing Attributes
Previous
 
Next
New Post
12/21/2005 8:44 PM
 
I was really excited to see that there is an attribute feature because I need it for a project. I want to use it for a gallery, that each picture would have attributes of : Industry, Material, Color.
I created all the attributes, but when I want to let the user choose which attributes to see while browsing the gallery I couldn't find this option - I tried all the skins and in all of them you can only sort by category. Please help.

Lior

Web SItes I Created : http://www.VendorsBay.com http://www.BuildPortal.com
 
New Post
12/21/2005 11:43 PM
 

Because of the way the Attribute tag works they aren't part of any of the templates so you'll have to add it.

Say you were using the Slide template for your Gallery. Open up the header.html and add your attribute tags. In the area you want them to show up. In your case it would be something like Industry: [Attribute:Industry] Material: [Attribute:Material] and Color: [Attribute:Color].

My suggestion would be to make a copy of the Slide template (or whatever template you're going to use) and make your changes to that one.

 
New Post
12/22/2005 5:14 AM
 
Actually I need the user to be able to filter using the attributes by selecting the attributes from drop down lists.
For example selecting te color black and Industry Automobile, he will se only the items that fits these categories.
You can see an example of what I need to implement here :
http://w16.updates.comrax.com/gallery
It's like multi sort.

Is that possible to achive using the attributes in the Repository module ?
If not, is this on the road map ?

Lior

Web SItes I Created : http://www.VendorsBay.com http://www.BuildPortal.com
 
New Post
12/22/2005 9:16 AM
 

Lior,
Yes you can accomplish exactly what you want to with the attributes feature in the current build.

On your Repository's module settings page, create 3 attributes, Industry, Material and Color. Then click on the Industry Attribute in the attributes list and begin entering Values in the value box to the right. Repeat this for each of the 3 attributes. Now, when you upload items to this repository, you will see 3 sets of checkboxes, one for each attribute with checkboxes for each value.

As Mike said, you will have to create a new skin, or edit an existing one. The best way to start would be to copy the default folder under the DesktopFolders\Repository\Templates folder, paste it in the same location and give it a new name, for example, gallery.

Now, in the DesktopModules\Repository\Templates\gallery folder, edit the header.html file with notepad. If you are not also using Catgories, you may delete the [CATEGORIES] tag. Next, add 3 new tags, [ATTRIBUTE:Industry], [ATTRIBUTE:Material] and [ATTRIBUTE:Color]. At runtime, the tag will be replaced with a dropdown list that contains all of the valid values, plus an 'ALL' option. By selecting various combinations of the 3 dropdown lists the users will be able to filter the repository just as you wish.

The final step is to go back to your Repository module's settings page and set the Repository skin to your new 'gallery' skin.

If you have any problems or have any additional questions, don't hesitate to post here.

Enjoy

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryUsing AttributesUsing Attributes


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out