cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

CMSComponent on the basis of search result.

Former Member
0 Kudos
256

HI Team ,

There is requirement of having different CMSComponent on the basis of search result . As like if i search for "A" ACMSComponent get rendered and if I search for "B" BCMSComponet get rendered .

Please help !

thanks,

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Could you provide more details what kind of component is required, is it a category search, keyword search. Generally, you can use search restrictions for such functionality.

Former Member
0 Kudos

its a keyword search , and i need to show a banner component on the basis of keyword that is put on the search bar . As like White shirt is a key word put in search bar and search then it should shows Shirt banner component .

thanks

Former Member
0 Kudos

Any approach ?

Former Member
0 Kudos

Hi Atul,

If you can somehow also return the Component ID you need to render with your search results in the controller, you can pass that component id in the model to pass it to the in the jsp to render the banner component.