-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent CMS page provider from leaking placeholder code #73
Comments
What's the content of your cms page? As described in the README support for CMS pages is very experimental. The twig contentes will not be rendered and displayed 1:1 in the search results. It's always safer to use static pages or pull the contents out into a separate plugin. |
`title = "Homepage" [siteSearchInclude]{% if not(slider.slides.slideShows is same as ('no_slider')) %} |
This won't work. You can only use the CMS provider if you have plain HTML code on the page.
I'm leaving this issue open since we might be able to at least prevent the leaking JavaScript code but at the moment you're best off just removing the |
Okay thanks. I think what I'm going to do is remove the line of text and only return the title of the page Thanks you! |
Hi
I need some help, because in the search on CMS pages the result provider give me all the text in the page, including including js.
I had to force the js code in the page it return when search.
It has happened to someone or someone has some idea of how to fix it
Some photos
Same result for .text
result.
Thanks!!
The text was updated successfully, but these errors were encountered: