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 categories and attributesUsing categories and attributes
Previous
 
Next
New Post
7/25/2009 9:48 AM
 

Hi, I'm struggling to understand the use of attributes and think I'm missing out on something I could make use of.

I've read the manual which gives and example of car colours, but still don't get it.

Would anyone be able to give me an example of using both the categories and the attributes, as well as how it could be displayed usefully on a site please?

Thanks

 
New Post
7/27/2009 11:56 AM
 

Categories and Attributes are very similar however they work at different 'levels'

Categories: In your module settings you can setup as many Categories as you like. Categories can be sub-categories by setting their parent to an existing category. Think of a 'tree' control when you picture setting up your categories.  Now, when an item is uploaded to your module, there will be a list of the available categories, and you can assign the new item to one or more categories.

The purpose of categories is to 'filter' the list of all available items.  The user can select a category and only items that belong to that category will be shown

Categories are one-dimensional. A category has a name and you can assign a repository item to one or more categories.  Membership in a category does not rely on any specific data value in the item, you can just assign the item to a category.

Attributes: Think of attributes as categories on steroids. Like Categories, Attributes are primarily used to 'filter' the list of items shown to the user.  Attributes are two dimensional. They have a name (just like Categories do) but then also have a list of possible values. Just like Categories. you set them up on your module settings page. For Attibutes you can create as many as you like and for each one you create, you can specify a list of valid values.  Ex: Set up an Attibute named 'Color' and set the possible values as 'Red', 'White' and 'Blue'.

When an item is uploaded, the user will be able to check off which attribute 'values' the item should be associated with. So again, in the previous example, the user would be able to select Red, White or Blue as the Color for the item. (see the pinned post in this forum for the technical details, I'm trying to keep this discussion theoretical).

So, in this example, you've created Categories and An Attribute named Color that has 3 possible values. The user can now use a combination of the Categories and Attributes to 'drill' down and see a set of items that meets their requirements. If you have Categories like 'All Items', 'Shirts', 'Pants' and 'Hats' the user could select a category, then optionally select an attribute (you will have to add the Attribute drop down list in the header template, again, see the pinned post for details).  Ex: If the user clicks on Hats, then only items that were assigned to the Hats Category would be displayed. Now, if the user selects 'Red' from the Color Attribute drop down, only items associated with the 'Hats' Category AND the 'Red' Color Attribute would be displayed, showing the user only Red Hats.

I hope that helps, like I said you can setup as many attributes as you like so you could setup another Attribute for Size and the user could elect to only see Small Red Hats:)

Let me know if that clears it up. If you have any specific questions, let me know.

 
New Post
7/27/2009 6:19 PM
 

That's very helpful thanks Steve.

I think it shows that I won't be able to use the attributes now, but it'll be great if and when I get a shop going. Or a review of loads of bikes. Ooh, or product reviews... maybe I can use it :-)

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryUsing categories and attributesUsing categories and 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