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  |  

  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

SmarterTools
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
 


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
2600 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.

 


Customer Connect
Customer Connect provides cutting edge solutions that deliver sales, marketing and customer service results.
www.customer-connect.com
TechNexxus
Business process and technology sourcing solutions delivering superior people, process and value. We have used, and continue to use, DNN successfully in numerous client projects to deliver exceptional value. We are proud to support the DNN team and community.
www.technexxus.com
PartnerPoint - Microsoft Technology Community
PartnerPoint is one of the largest online communities of Microsoft Partners Worldwide. With over 5,000 active members, it serves as a collaboration platform for other technology communties around the globe
www.partnerpoint.com

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