Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
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
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
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.
ok Thanks i will try this :)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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
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
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
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
ok Thanks i will try this :)
Yogesh
is working on a reply...