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 5 of 5

Thread: How can I stop template switching applying to products?

  1. #1
    BFG 9000 is offline Senior Member
    Join Date
    Oct 2006
    Location
    South UK
    Posts
    882

    Default How can I stop template switching applying to products?

    As per the title really, I want to use the same template (template.ascx) for every single page on the site with the exception of 2 category pages which I want to use template2.ascx - I have succesfully done this using template switching but.......
    Any products in those 2 categories are also being rendered using template2.ascx

    In an attempt to fix this, I've created an appconfig called Templateshowproduct.aspx & given it a value of template2.ascx - but this has failed to work - I guess the order of precedence is the other way around.

    Any ideas how I can solve my problem?


    TTFN

    BFG

  2. #2
    BFG 9000 is offline Senior Member
    Join Date
    Oct 2006
    Location
    South UK
    Posts
    882

    Default

    Anyone think this is possible?

  3. #3
    joe.loutzenhiser is offline Junior Member
    Join Date
    Jan 2008
    Location
    Ashland, OR
    Posts
    18

    Default This solution may serve you better...

    https://support.aspdotnetstorefront....d=150&nav=0,26

    That allows you to create it per category, not for all categories, as is seems the method you are trying to use.
    Vortx - DevNet partner
    http://www.vortx.com

  4. #4
    GoodFella is offline Member
    Join Date
    Mar 2009
    Posts
    99

    Default

    BFG ... did you ever get this resolved? I am having the same issue.

    Thanks

  5. #5
    BFG 9000 is offline Senior Member
    Join Date
    Oct 2006
    Location
    South UK
    Posts
    882

    Default

    Wow - this is a blast from the past... 2008!

    I didn't actually get to stop template switching applying to products - but - I did discover that an xmlpackage is a better way to handle this :-

    Have the xmlpackage determine what page you're on & show content accordingly.


    TTFN

    BFG