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  |  

$4.95 Windows Hosting at Webhost4life.com
  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Announcements M...  How to use Token in XML Template ?
Previous Previous
 
Next Next
New Post 3/31/2008 2:50 PM
User is offline Tyrone
3 posts
10th Ranked


How to use Token in XML Template ? 

My 'announcements' are actually job ads -- with a standard format that I need to use and feed to other apps.

I created a template in the fcktemplates.xml file.  Rather than have the user re-type the title which they just entered as the announcement title [TITLE], I thought I'd just display the contents of the [TITLE] token in the job ad.

I figured I'd just put '[TITLE]' in the template.  Result?: 'The text [TITLE]' displays.  Not the content of the token.

Obviously, this requires some bit of programming expertise I don't have.   Ideas?  Solutions?

- <Template title="NAOBI DC Jobs" image="JobAd_template.gif">
  <Description>Input form for Local DC Interpreting Jobs</Description>
- <Html>
<![CDATA[
				<table align="left" width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td>
					<table class="Normal" cellspacing="0" cellpadding="0" border="0">
						<tbody>
						<tr>
							<td width="81">Category:</td>
							<td>Job</td>
						</tr>
						<tr>
							<td width="81">Title:</td>
							<td>[TITLE]</td>
						</tr>
						<tr>
							<td width="81">Date:</td>
							<td>...type closing date or start date here...</td>
						</tr>
						<tr>
							<td width="81">Location:</td>
							<td>...type city & state here...</td>
						</tr>
						<tr><td>&nbsp</td></tr>
						<tr>
							<td class="Normal" colspan="2">...type all other job info here...  ...type all other job info here...  ...type all other job info here...  ...type all other job info here...  ...type all other job info here...</td>
						</tr>
						</tbody>
					</table>
				</td></tr></table>
			
  ]]> **filtered** type="text/javascript">f(clean);
  </Html>
  </Template>
 
New Post 4/1/2008 2:37 AM
User is offline ErikVB
3073 posts
www.apollo-software.nl
4th Ranked










Re: How to use Token in XML Template ? 

you would need to change the bit of code that implements tokenreplace. Not sure even if this works, as it would require a chain of tokenreplace commands. Perhaps you would have to consider other modules to do what you need...


Erik van Ballegoij,
a view from my attic, my personal blog

The personal blog of Erik van Ballegoij

 
New Post 4/1/2008 7:46 AM
User is offline Tyrone
3 posts
10th Ranked


Re: How to use Token in XML Template ? 

Definitely sounds like more work than I want to sign up for right now!  Thanks for the quick reply.

 
New Post 4/1/2008 10:35 AM
User is offline Paul Scarlett
188 posts
www.tressleworks.ca
9th Ranked






Re: How to use Token in XML Template ? 

If you want to display data from a SQL Table, you may want to consider SQLGridSelectedView.  This free module supports templating and would allow you to place the individual record's column values where ever you want in the template.  You can find the module at www.tressleworks.ca.  There is a 40+ page user guide to help use the variaous feature such as templating ...  I

/Paul.

 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Announcements M...  How to use Token in XML Template ?
 


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.

 


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® in Sweden
All service of DotNetNuke® in Sweden.
Olsmar Konsult
DocuPeak Business Process Management RAD
Comprehensive enterprise and government process management. Forms, documents, indexing, workflow, views, content intelligence, capture, etc. Point and click rapid application development.
www.Webiplex.com

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