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 to use Token in XML Template ?How to use Token in XML Template ?
Previous
 
Next
New Post
3/31/2008 4:50 PM
 

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>
			
  ]]>
  </Html>
  </Template>
 
New Post
4/1/2008 4:37 AM
 

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, Former DNN Corp. Employee and DNN Expert

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

 
New Post
4/1/2008 9:46 AM
 

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

 
New Post
4/1/2008 12:35 PM
 

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
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsAnnouncementsAnnouncementsHow to use Token in XML Template ?How to use Token in XML Template ?


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