Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Martin Bentzen 83 posts 145 karma points
    Jul 10, 2009 @ 22:26
    Martin Bentzen
    0

    CurrentPage doesn't seems to be set correctly when using SearchForTemplate NotFoundHandler

    I have a site, where I'm in progress with a redesign of the site. I'm making a new set of templates, and test them by include the new template in the url eg http://site.com/node/template.aspx. So far så good.

    At least one of the templates (both the old one and the new one) I use a macro and xslt, which loops though some of the descendants of the $currentPage. But It doesn't seems that the $currentPage param is set on the new pages (that one used as alternativ template by SearchForTemplate handler). If I just use http:/site.com/node.aspx (with the old template) the XSLT do the right job.

    Hope I have explained me well. If other can reproduce the issue, I will raise it at codeplex.

    I use V4.0.2.1

    Regards
    Martin

  • Martin Bentzen 83 posts 145 karma points
    Jul 10, 2009 @ 22:32
    Martin Bentzen
    0

    In other words:
    Can someone try to do following:

    Make sure you use the searchForTempate notFoundhandler

    Find a template, where you use a macro with some xslt that use $currentPage and do something with that.

    Then find a node where that template is used

    Try to enter http://site.com/node.aspx and http://site.com/node/templatealis.aspx and see if you get the same result on the two sites

     

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies