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 ForumsRepositoryRepositorySetting attribute drop-down widthSetting attribute drop-down width
Previous
 
Next
New Post
7/24/2006 8:04 PM
 
Hello,

I've added three attributes to an instance of the Repository module and can get them to display without a hitch. Unfortunately, I haven't been able to set the width of the attribute drop-down menus like I can with the category drop-down.

For example, the relevant HTML from my header.html file looks like this:

    <TD CLASS="breadcrumb" ALIGN="left" VALIGN="top">
        [LABEL:GradeAttribute]<br>[ATTRIBUTE:Grade]
    </TD>



The relevant XML from header.xml looks like this:

    <Object>
        <Token>[ATTRIBUTE:Grade]</Token>
        <Settings>
            <Setting>
                <Name>CssClass</Name>
                <Value>normal</Value>
            </Setting>
            <Setting>
                <Name>Width</Name>
                <Value>120</Value>
            </Setting>
        </Settings>
    </Object>



Am I missing something? Is the Width setting not supported by attributes? If not, where is the default width of 100px set?

Thanks!

- Robert
 
New Post
7/24/2006 11:23 PM
 

That should work just fine from looking at the documentation (I don't have my dev system at home tonight). What version of the Repository are you using? I won't be in the office much tomorrow but I'll try to verify that nothing was changed with the latest version of the Repository.

Another thing that could be causing the problem is that the template has been cached on your system. I've run into that before and the only way I could get my changes to stick was to rename the template something different and apply the renamed version to the Repository.

 
New Post
7/25/2006 6:43 AM
 

Currently you can't set xml settings for individual attributes, you can only set xml settings for ATTRIBUTES which are applied to all attributes.

So, the header.xml file can contain:

    <Object>
        <Token>[ATTRIBUTES]</Token>
        <Settings>
            <Setting>
                <Name>CssClass</Name>
                <Value>normal</Value>
            </Setting>
            <Setting>
                <Name>Width</Name>
                <Value>120</Value>
            </Setting>
        </Settings>
    </Object>

Which will set the width of ALL attribute dropdown lists in your header to 120px and the cssclass to normal. I believe the ability to set xml settings on individual attributes is on the 'enhancement' list for the next release.

 
New Post
7/25/2006 10:53 AM
 
DOH!!! I missed that the token was wrong. Bad Support Guy.... Bad.
 
New Post
7/25/2006 2:13 PM
 
Thanks, Steve! The ATTRIBUTES token works as you suggested. I'm looking forward to the next release---and the .NET 2.0 source whenever it appears.

- Robert
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositorySetting attribute drop-down widthSetting attribute drop-down width


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