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 ForumsRepositoryRepositoryXML setting not taking effect..!XML setting not taking effect..!
Previous
 
Next
New Post
5/28/2007 4:24 AM
 

Hello everybody,

I want to modify the "Filelist" skin of repository module to show "Author" along with other file details. i have added the [AUTHOR] token in template.html and can now see the name of the uploading user along with the file details. Then i added [LABEL:Author] to the header.html and can now see the word "Author" at the appropriate place. But it was being rendered using CSS class normal as can be seen highlighted in the rendered page-source below:

<TD WIDTH="1" ALIGN="left" VALIGN="top">&nbsp;</TD>
<TD WIDTH="120" CLASS="normalbold" ALIGN="left" VALIGN="top"><span class="SubHead">Date</span></TD>
<TD WIDTH="16" ALIGN="left" VALIGN="top" style="padding-right:2px;">&nbsp;</TD>
<TD CLASS="normalbold" ALIGN="left" VALIGN="top"><span class="SubHead">File</span></TD>
<TD WIDTH="150" CLASS="normalbold" ALIGN="left" VALIGN="top"><span class="normal">Author</span></TD>
<TD WIDTH="40" CLASS="normalbold" ALIGN="left" VALIGN="top"><span class="SubHead">Size</span></TD>
<TD WIDTH="80" CLASS="normalbold" ALIGN="left" VALIGN="top">&nbsp;</TD>

Now, to apply the "SubHead" class i added the following setting in header.xml...

<Object>
        <Token>[AUTHOR]</Token>
        <Settings>
            <Setting>
                <Name>CssClass</Name>
                <Value>SubHead</Value>
            </Setting>
        </Settings>
    </Object>

But still the "SubHead" class is not being applied, and the rendered page-source contains the following code:

<TD WIDTH="150" CLASS="normalbold" ALIGN="left" VALIGN="top"><span class="normal">Author</span></TD>

 

Where have i gone wrong or missed a step? Thanks in advance for any inputs.


Author - 'Become an iMature Student'
Book on 'Internet Maturity' for all students.
 
New Post
5/28/2007 7:19 AM
 

There are a couple of ways to solve your problem.

1. if you're not worried about localizing your header, then don't bother using a LABEL tag, just modify your header.html file to display the text Author using teh SubHead class.

<TD CLASS="normalbold" ALIGN="left" VALIGN="top"><span class="SubHead">Author</span></TD>

2. if you do need localization, then the problem is that the tag is case-sensitive so if you're using LABEL:Author, then the xml tag needs to be Author.

<Token>[Author]</Token>

 
New Post
5/28/2007 9:58 AM
 

Hi Steve!

Thanks, your solution-2 worked and now i will switch over to your solution-1... coz i don't need localization and as it is said... Simplify, simplify, simplify

I've also been reminded of the fact that my xml knowledge is a bit limited

 


Author - 'Become an iMature Student'
Book on 'Internet Maturity' for all students.
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryXML setting not taking effect..!XML setting not taking effect..!


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