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 ForumsRepositoryRepositoryUse Token More Then Once In A TemplateUse Token More Then Once In A Template
Previous
 
Next
New Post
1/4/2007 9:17 PM
 
Hi,

Is it possible to use a token more then once in a template?  For example I've trying to use the [DOWNLOAD] token at the top and bottom of a page.  When attempting this I get the following error "Multiple controls with the same ID 'hypDownload' were found. FindControl requires that controls have unique IDs." when trying to load the module.

Do I need to declare an alias for the same token?

Best Regards,
Ben

Do you use Oracle?  Then try GoldFish.Net

Get it from CNET Download.com! 

 
New Post
1/5/2007 12:38 AM
 
Yes just add another tag called DOWNLOAD1 and then use that in your skin

Regards
Nick
 
New Post
1/5/2007 1:20 AM
 
Thanks for your help. I'm not sure if I'm creating the Alias correctly.
I editted the Template.html and added [DOWNLOAD1], then I added [DOWNLOAD1] to the Template.xml.
But I'm not sure how to map [DOWNLOAD1] to [DOWNLOAD].  Is this done the the Template.xml or do I need to edit another file?  Sorry just alittle confused with this part.

Best Regards,
Ben

Do you use Oracle?  Then try GoldFish.Net

Get it from CNET Download.com! 

 
New Post
1/5/2007 12:26 PM
 
Ben, I believe Nick is talking about adding another download tag in the source code and recompilling. There's no way using the current module to have duplicate tags without making a code change.
 
New Post
1/5/2007 3:47 PM
 
I started to look through the code ( C# component and Oracle programmer, so this is my first venture to the web ).
Not sure I want to do this due to future support issues, but I figured I'd ask to see if I am in the right place.
If I was to modify the method repository.ascx ItemDataBound, that would allow me to push "custom" tokens into the templates correct?

Do you use Oracle?  Then try GoldFish.Net

Get it from CNET Download.com! 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryUse Token More Then Once In A TemplateUse Token More Then Once In A 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