I want to include a topic called "test" in the template file (so it appear on each page), does anyone know how would do this?
Thanks
I want to include a topic called "test" in the template file (so it appear on each page), does anyone know how would do this?
Thanks
Just put something like the following in your .ascx file where you want the topic to appear.
(!Topic Name="homeTestimonial2"!)
Matthew Bertulli
Demac Media
mbertulli@demacmedia.com
Custom Web Design & E-Commerce Development
AspDotNetStoreFront Platinum DevNet Partner
----
Custom Skinning & Design
Web Services Integration
Custom Reporting
Salesforce.com eCommerce AspDotNetStoreFront Integration
Thanks, I got it working but I was trying to use html which doesn't seem to work when you call it this way!
Do you mean you're trying to use HTML in the topic and it's not displaying properly, or you're trying to use the topic call - (!Topic Name="topicname"!) - in an html file? There should be no issues with HTML in the topic (just make sure you're entering the HTML for the topic in HTML mode and not design mode when you're editing the topic or the topic will render the HTML elements rather than parsing it as HTML), but you won't be able to use the topic syntax in an html file.
<a href="http://www.aspdotnetstorefront.com">Shopping Cart Software</a>
I was using this (in the template.asc):
(!Topic Name="footer_img"!)
to call a topic containing this;
<a class="banner" href="#"><img border="0" src="skins/Skin_9/images/media/banner.jpg"/></a>
I literally got the html code on the page rather than the proper display.
Last edited by Fean0r; 02-01-2010 at 09:00 AM.
I still haven't resolved this issue, any ideas?
Thanks
Version: ML 8.0.1.2 and No Source Code.
When you were creating the topic in the WYSIWYG editor, did you make sure to go into HTML mode? On the editor page, in the bottom left, if you click on the brackets it will enter HTML mode. Put the code in that way, otherwise it will just display the literal HTML coding itself. Try that, see if it works.![]()
I was sure I'd done this!
Thanks for the hlpe, it's all working fine now!
Version: ML 8.0.1.2 and No Source Code.
Use an <asp:Literal statement with a Token.
Code:<asp:Literal ID="Literal1" runat="server" Text='<%$ Tokens:Topic, helpbox %>' />