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 ForumsRepositoryRepositoryTurn attribute into a drop downTurn attribute into a drop down
Previous
 
Next
New Post
9/2/2008 5:15 AM
 

Is it possible to turn an attribute into a dropdown in add new item

I have an attribute called location with a mile of possibilities.

Thanks

 
New Post
9/2/2008 7:46 AM
Accepted Answer 

No, for attributes on the upload form, you can elect to use Checkboxes (select many) or Radio buttons (select one) but you can't use a drop down list. You can tell it to use multiple columns though if that will help

Edit the form.xml file.

If you add a tag named ATTRIBUTES it will be applies to all attributes on your form. If you add a tag for ATTRIBUTE:tokenname then it will only apply to that particular attribute (note: tokenname is case sensitive),

Example: to make all attributes on the forms use Radio buttons with 2 columns

  <Object>
  <Token>[ATTRIBUTES]</Token>
  <Settings>
   <Setting>
    <Name>Select</Name>
    <Value>SINGLE</Value>
   </Setting>
   <Setting>
    <Name>RepeatColumns</Name>
    <Value>2</Value>
   </Setting>
   <Setting>
    <Name>RepeatDirection</Name>
    <Value>Horizontal</Value>
   </Setting>
  </Settings>
 </Object>

Another example: to use 3 columns of checkboxes for the attribute named 'location'

  <Object>
  <Token>[ATTRIBUTE:location]</Token>
  <Settings>
   <Setting>
    <Name>Select</Name>
    <Value>MULTIPLE</Value>
   </Setting>
   <Setting>
    <Name>RepeatColumns</Name>
    <Value>3</Value>
   </Setting>
   <Setting>
    <Name>RepeatDirection</Name>
    <Value>Horizontal</Value>
   </Setting>
  </Settings>
 </Object>
 
New Post
9/2/2008 8:24 AM
 

awesome!! thats great

i cant seem to get it to work for CATEGORIES though

i did remove the word attribute

<Object>
  <Token>[CATEGORIES]</Token>
  <Settings>
   <Setting>
    <Name>Select</Name>
    <Value>MULTIPLE</Value>
   </Setting>
   <Setting>
    <Name>RepeatColumns</Name>
    <Value>3</Value>
   </Setting>
   <Setting>
    <Name>RepeatDirection</Name>
    <Value>Horizontal</Value>
   </Setting>
  </Settings>
 </Object>

 

ps how do you put the code in a yellow box :)

 

 
New Post
9/2/2008 9:58 AM
 

Sorry, the tags are case-sensitive and for some unknown reason the Categories token is not all upper case.

So your example would work if it looked like 

<Token>[Categories]</Token>

Here's cool thing about categories, since they support sub-categories, you have a third option on how to display them

SINGLE: Radio Buttons
MULTIPLE: Checkboxes
TREE: A DNN Tree Control

:)

Yellow boxes: see this thread
http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/118/threadid/227794/scope/posts/Default.aspx

 
New Post
9/9/2008 8:49 AM
 

^

Awesome. Is there any way to display the categories as a tree in, say, the header or the dashboard?

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryTurn attribute into a drop downTurn attribute into a drop down


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