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 ForumsRepositoryRepositoryCustom labels not showing upCustom labels not showing up
Previous
 
Next
New Post
12/8/2006 9:27 AM
 
Hi, I'm trying to modify the "filelist" template so I can sort by a custom attribute, File Type.  And unfortunately I can't seem to get the labels to show up even though I seem to be following what the template has laid out.

I was looking through the documentation so I guess I'll need one more step.  I'm trying to figure out where I went wrong.
1. Add [LABEL:File Type] to the header.html page.
2. Added [File Type] as a token to the header.xml file. 

Unfortunately nothing shows up and most of the time I just modified what was already there.  Can labels support multiple words with spaces?

And just to make things clearer here's the code I used:
header.html
<TD WIDTH="120" CLASS="normalbold" ALIGN="left" VALIGN="top">[LABEL:File Type]</TD>

header.xml
<Object>
        <Token>[File Type]</Token>
        <Settings>
            <Setting>
                <Name>CssClass</Name>
                <Value>SubHead</Value>
            </Setting>
        </Settings>
    </Object>

I thought changing the token to [LABEL: File Type] would fix it, but no dice.  Any help is appreciated.
 
New Post
12/10/2006 11:26 PM
 

A couple of things. The Label tag is going to look in the module's .ascx.resx file for that tag and File Type isn't going to be in there so just make it .....VALIGN="top">File Type</TD>. Oh and set the class in the <TD line to SubHead instead of normalbold. Now you should see it saying "File Type" on the main page but no dropdownlist box. What you have to add to the header.html file is a tag called [ATTRIBUTE:File Type] to get the list box. So in your case your line could look like this:

<TD WIDTH="120" CLASS="SubHead" ALIGN="left" VALIGN="top">File Type<br>[ATTRIBUTE:File Type]</TD>

That should get everything working and you don't need to add anything to your form.xml file unless you're applying a specific CSS class to it other than normal.

 
New Post
12/12/2006 8:55 AM
 
Thanks a lot, that really helps, sort of makes me wish I'd thought of that simple a solution :).
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryCustom labels not showing upCustom labels not showing up


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