Copied to clipboard

Flag this post as spam?

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


  • Peter Schermers 112 posts 134 karma points
    Nov 28, 2012 @ 13:20
    Peter Schermers
    0

    Probably easy: nothing is rendered

    As the topic suggests, my search bar doesn't do anything. I'm working with a root node called 'General', which is the parent of all other nodes ('Home', 'Products', 'XSLTsearch', etc.). The problem here is not that I have selected the wrong root (which would return something like '0 results found'), I just can't get any response except this rendered line:

    <div id="xsltsearch"> </div>

    I've been trying to understand the provided XSLT file, and saw that the next rendered line inside this div should be

    <p id="xsltsearch_summary"> And then some more lines.

    But I just get the top one, nothing more.

    What dumb n00b mistake am I making here?

  • Peter Schermers 112 posts 134 karma points
    Nov 28, 2012 @ 13:45
    Peter Schermers
    0

    So I have edited the next line of code and reversed the xml test by changing

    <xsl:if test="$unescapedSearch !=''">

    to

    <xsl:if test="$unescapedSearch =''">

    and this renders the line 'No results were found for'

     

    I know it's not great, but does this help? Anyone?

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Dec 10, 2012 @ 14:52
    Douglas Robar
    0

    Hi, Peter,

    Do you still have this problem or did you get it resolved? It sounds like a simple matter that is probably related either to the way your content tree is structured or how you are passing the search term to the search page and it's macro parameters.

    Let us know.

    cheers,
    doug. 

  • Peter Schermers 112 posts 134 karma points
    Dec 10, 2012 @ 15:49
    Peter Schermers
    0

    Hi Doug,

    Thanks for your response.
    Fortunately enough I convinced my boss that it was already way too time consuming for this project to earn anything on it, so I took it out of the website.
    Our client didn't even notice. ;-)

    While I'm enthousiastic about an easy search inside Umbraco, I'm afraid to offer it as an option to our clients since my last experience with it.
    I'm too unexperienced to solve any problems that might be coming with it (though I'm thankful for this wonderful forum ;-)

    p

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Dec 10, 2012 @ 15:50
    Douglas Robar
    0

    Sorry you didn't get it working. It should be a 2minute task to install and configure it. If you ever what to try it again give me a shout and I'll try to lead you through it.

    cheers,
    doug. 

  • Peter Schermers 112 posts 134 karma points
    Dec 10, 2012 @ 16:17
    Peter Schermers
    0

    Wow, thanks a lot!

    I'll keep that in mind next time!

    p

Please Sign in or register to post replies

Write your reply to:

Draft