Copied to clipboard

Flag this post as spam?

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


  • yogesh pathak 136 posts 221 karma points
    Aug 05, 2015 @ 13:34
    yogesh pathak
    0

    How to search in razor macro content

    Hi All, i have razor macro in which i am listing all my addresses , these addresses i have kept static (typed directly in razor view ) , now i want these values should be displayed when search i performed How can i achieve this?

    thanks Yogesh

  • Ismail Mayat 4511 posts 10090 karma points MVP 2x admin c-trib
    Aug 06, 2015 @ 08:22
    Ismail Mayat
    0

    Yogesh,

    Either put the content in a node or use the search package full text search https://our.umbraco.org/projects/website-utilities/full-text-search/ that uses a crawler so it indexes the rendered content

    Regards

    Ismail

  • yogesh pathak 136 posts 221 karma points
    Aug 06, 2015 @ 08:46
    yogesh pathak
    0

    Hi Ismail, what do you mean by "Put that content in a node" ? is that mean -i should insert these addresses as macro parameter?

    and second thing i am currently using Umbraco examin for search so is there a way by which i can use FullTextSearch with it parallely?

    Thanks

    Yogesh

  • Ismail Mayat 4511 posts 10090 karma points MVP 2x admin c-trib
    Aug 06, 2015 @ 09:02
    Ismail Mayat
    0

    Create a node and put the static content in there and publish the node. Update your macro to write out the node content.

    This way on publish the content will be in the index and you can carry on using examine.

    If you use the other package then you would use that instead of examine.

    Regards

    Ismail

  • yogesh pathak 136 posts 221 karma points
    Aug 06, 2015 @ 10:57
    yogesh pathak
    0

    ok Thanks i will try this :)

    Yogesh

Please Sign in or register to post replies

Write your reply to:

Draft