Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
I want to check if my URL does not contains certain word and depends on this criteria want to change meta url tag. Here is what I do
<#if theme_display.getURLCurrent()?contains("word")>
<#else>
<meta property="og:url" content=........... />
But it seems not very cool, any one know if there is an opposite of contains in freemarker? Something like ?notcontains("word")
–
–
<#if theme_display.getURLCurrent()?contains("word") == false>
<meta property="og:url" content=........... />
<#if !theme_display.getURLCurrent()?contains("word")>
<meta property="og:url" content=........... />
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.