Copied to clipboard

Flag this post as spam?

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


  • Jim Lesinski 32 posts 54 karma points
    Jul 12, 2011 @ 16:41
    Jim Lesinski
    0

    xslt search macro in body text

    Hello,

    I am using the XSLT Search Module in Umbraco 4.7. I have set the module to search a bodyText RTF field, which it seems to be doign well. However, I have a macro that renders content from XSLT and the search module seems to be ignoring this content.

    Should it be searching the macro content? Am I doing something wrong or can I adjust something?

    Thanks,
    Jim

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Jul 12, 2011 @ 16:51
    Tom Fulton
    0

    XSLTSearch won't search content of rendered macros - it only searches the values of the fields (properties) that you tell it to (via the searchFields parameter).

    So if your macro is accessing specific fields, you could try adding those to the fields that XSLTSearch searches.

    Otherwise if you are wanting to search the entire "output" of a page, you may need to look into another solution.  There was a package posted recently that should handle this, although I haven't used it yet:  Full Text Search

    Hope this helps,
    Tom

Please Sign in or register to post replies

Write your reply to:

Draft