Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 9 of 9

Thread: Including a Topic on X Page

  1. #1
    Fean0r is offline Senior Member
    Join Date
    Nov 2009
    Posts
    145

    Default Including a Topic on X Page

    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

  2. #2
    mbertulli is offline Senior Member
    Join Date
    Aug 2008
    Posts
    243

    Default

    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

  3. #3
    Fean0r is offline Senior Member
    Join Date
    Nov 2009
    Posts
    145

    Default

    Thanks, I got it working but I was trying to use html which doesn't seem to work when you call it this way!

  4. #4
    George the Great is offline Senior Member
    Join Date
    Nov 2006
    Location
    Cleveland, OH
    Posts
    1,792

    Default

    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>

  5. #5
    Fean0r is offline Senior Member
    Join Date
    Nov 2009
    Posts
    145

    Default

    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.

  6. #6
    Fean0r is offline Senior Member
    Join Date
    Nov 2009
    Posts
    145

    Default

    I still haven't resolved this issue, any ideas?

    Thanks
    Version: ML 8.0.1.2 and No Source Code.

  7. #7
    Mike The Last Boyscout is offline User
    Join Date
    Nov 2008
    Posts
    254

    Default

    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.

  8. #8
    Fean0r is offline Senior Member
    Join Date
    Nov 2009
    Posts
    145

    Default

    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.

  9. #9
    cjbarth is offline Senior Member
    Join Date
    Oct 2008
    Posts
    392

    Default

    Use an <asp:Literal statement with a Token.

    Code:
    <asp:Literal ID="Literal1" runat="server" Text='<%$ Tokens:Topic, helpbox %>' />