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 ForumsAnnouncementsAnnouncementsHow do I edit tokens?How do I edit tokens?
Previous
 
Next
New Post
3/10/2008 5:15 PM
 

In the "Annoucements" module there is a template defined like this...

<table><tr><td>[IMAGESOURCE]</td><td valign="top"><span class="SubHead">[EDIT][TITLE] - [PUBLISHDATE]</span><div class="Normal DNN_ANN_Description">[DESCRIPTION]&nbsp;[READMORE]</div></td></tr></table>

How do I change the definition of [DESCRIPTION] and [READMORE]?

Thanks.

 
New Post
3/10/2008 7:20 PM
 

I managed to adjust the formatting by changing this CSS class DNN_ANN_Description. But I'm still curious about where those tokens are stored. I would presume that they would be in an xml file somewhere but I did a search for [READMORE] and nothing turned up.

 
New Post
3/11/2008 5:16 AM
 

To answer both your questions:

The tokens are not stored in a XML file, but are 'hard-coded' in the Announcements module. During the DataBinding of the control the tokens are simply replaced by the corresponding values from the database.

So you can not change the representation of the values of the tokens, nor can you add additional tokens. What's left is that you can modify the appearance using html and/or css or use javascript to do additional value processing.

Serge

 
New Post
3/11/2008 8:29 AM
 

ferrethouse wrote

In the "Annoucements" module there is a template defined like this...

[IMAGESOURCE] [EDIT][TITLE] - [PUBLISHDATE]
[DESCRIPTION] [READMORE]

How do I change the definition of [DESCRIPTION] and [READMORE]?

Thanks.

Can you explain what it is you want to do?


Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
New Post
3/11/2008 9:45 AM
 

Yes. The [DESCRIPTION] token seems to contain a <p> tag which causes there to be a large space between it and [READMORE]. [READMORE] looks like it is part of the next announcement instead of the one it actually belongs to because of the excessive space. I managed to deal with it using CSS. Originally, I wanted to get access to [READMORE] so that I could remove the <p> tag that was included.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsAnnouncementsAnnouncementsHow do I edit tokens?How do I edit tokens?


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