Copied to clipboard

Flag this post as spam?

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


  • Carlos 338 posts 472 karma points
    Jan 17, 2012 @ 22:08
    Carlos
    0

    XSLTsearch macro in separate XSLT file

    I was wondering if I can render the XSLTsearch results into another XSLT file.

    I currently have in my XSLT 

    <xsl:value-of select="umbraco.library:RenderMacroContent('&lt;?UMBRACO_MACRO 
              Alias=&quot;XSLTsearch-TeacherPrograms&quot;
          macroAlias=&quot;XSLTsearch-TeacherPrograms&quot;
         source=&quot;-1&quot;
          searchFields=&quot;gradeLevelRange,contentType,programTypeList&quot;
          previewFields=&quot;bodyText,metaDescription&quot;
          previewType=&quot;beginning&quot;
          searchBoxLocation=&quot;none&quot;
          resultsPerPage=&quot;5&quot;
          previewChars=&quot;255&quot;
          showPageRange=&quot;0&quot;
          showOrdinals=&quot;0&quot;
          showScores=&quot;0&quot;
          showStats=&quot;0&quot; &gt;
        
        &lt;/?UMBRACO_MACRO&gt;')" /> 

    But when I try to view the macro on the front end on the web page it is giving me an  Error parsing XSLT file: \xslt\myFile.xslt

    Am I missing something?  

    Any help is much appreciated. Thanks.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jan 17, 2012 @ 22:52
  • Carlos 338 posts 472 karma points
    Jan 17, 2012 @ 22:55
    Carlos
    0

    Sorry about that. I was just wondering if anyone else would have any ideas out in the area versus the XSLTsearch specific forums.

    I will look at your answer and try it out.

    Thanks again.

Please Sign in or register to post replies

Write your reply to:

Draft