Fulltext search: How to display menu items in search results as well as pages #12725
Replies: 3 comments 6 replies
-
I would need to try but I think it could work by using the Full-Text index settings on the Menu content type. You could try to do a Liquid |
Beta Was this translation helpful? Give feedback.
-
It seems that menu items are not content items. They are created within a menu and stored with it. As it is, I cannot query them with a lucene query. I can only query for the parent menu which is not what I want. Not sure what the best way should be to implement this. I could modfy the SearchController to return the menu items whenever I get a menu and create a new template. Or I could try to modify the menu so it uses a list part or something like that so then I can make the menu items creatable and listable that way I could search for them. But that would break the way menu items are stored at the moment. Any suggestions? |
Beta Was this translation helpful? Give feedback.
-
Is it possible to create a Lucene query that would return menu items? I can get content items of type Menu but not menu items. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys! I'd like to be able to search menu items as well as pages. For example, after setting up a site with the blog recipe I can't find a way to display the menu items in the search results. I can get the main menu content item but not the actual children.
Any ideas how I could do this?
Beta Was this translation helpful? Give feedback.
All reactions