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  |  

AppTheory specializes in solutions based on the DotNetNuke platform and has 2 employees on the DotNetNuke Core Team.
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
The best choice for your web site host, email hosting, and domain registration.
 


  Sponsors  

Meet Our Sponsors

telerik
ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Announcements M...  How do I edit tokens?
Previous Previous
 
Next Next
New Post 3/10/2008 2:15 PM
User is offline ferrethouse
17 posts
10th Ranked


How do I edit tokens? 

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 4:20 PM
User is offline ferrethouse
17 posts
10th Ranked


Re: How do I edit tokens? 

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 2:16 AM
User is offline Serge van der Ven
2 posts
10th Ranked


Re: How do I edit tokens? 

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 5:29 AM
User is offline ErikVB
2713 posts
www.apollo-software.nl
5th Ranked










Re: How do I edit tokens? 

 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, Apollo Software
If what i am saying is wrong: blame Google
MLSkinHelper: the easy way to put editable text in your skin!
Nederlandse DotNetNuke Gebruikersgroep Apollo Software
 
New Post 3/11/2008 6:45 AM
User is offline ferrethouse
17 posts
10th Ranked


Re: How do I edit tokens? 

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 Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Announcements M...  How do I edit tokens?
 


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.

 


Mad Development: dotnetnuke design and development
We are an expert Dotnetnuke shop specializing in developing solutions that merge the requirements of design and branding, content management, ecommerce, search engine optimization and business logic.
www.MadDevelopment.com
telerik
telerik r.a.d.controls suite is the most innovative and comprehensive toolset for ASP.NET development, tailored for seamless integration with the DotNetNuke project. This integrated collection of controls allows professionals to build web-solutions with the UI richness and responsiveness of desktop applications.
dnn.telerik.com
CrystalTech
CrystalTech Web Hosting™ provides first-class service and support. Our value-packed ASP.NET plans offer DNN installation, SQL 2005 and up to 100 domain names starting at only $16.95 per month!
CrystalTech.com

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