Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Maximum ASP
  Ads  
 


  Sponsors  

Meet Our Sponsors

Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
ExactTarget email software solutions
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Repository Modu...  Turn attribute into a drop down
Previous Previous
 
Next Next
New Post 9/2/2008 3:15 AM
Resolved
User is offline tango
92 posts
10th Ranked


Turn attribute into a drop down 

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 5:46 AM
Accepted Answer 
User is offline Steve Fabian
1498 posts
6th Ranked








Re: Turn attribute into a drop down 

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>

Steve Fabian
Gooddogs.com
Sit, Stay, Code ... Good boy!
 
New Post 9/2/2008 6:24 AM
User is offline tango
92 posts
10th Ranked


Re: Turn attribute into a drop down 

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 7:58 AM
User is offline Steve Fabian
1498 posts
6th Ranked








Re: Turn attribute into a drop down 

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


Steve Fabian
Gooddogs.com
Sit, Stay, Code ... Good boy!
 
New Post 9/9/2008 6:49 AM
User is offline danbarua
9 posts
10th Ranked


Re: Turn attribute into a drop down 

^

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

 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Repository Modu...  Turn attribute into a drop down
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


EMAS Pro
Strategic Enrollment Management Software for Higher Education Recruitment, Retention and Financial Aid
www.emaspro.com
Subzero Solutions
Dutch / English DotNetNuke consultancy services. Custom module development in any version. Complete application integration. Small business portal hosting. Your ideas our innovation - Your success our motivation. K.v.k Amsterdam: 34236342
www.subzero-solutions.net
Hosting for DotNetNuke
SiteGround.com is the best place to host your DotNetNuke website! Expert DotNetNuke support, reliable servers, low price!
www.SiteGround.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP