Sorry, we don't support your browser.  Install a modern browser
This post is closed.

Allow logic/conditionals in blueprint

For example, in the pages section I want to be able to set the text property to the page title, except when it has tag “microblog” in which case I want to set it to the page text instead, and prefix it with “Microblog: “.

4 years ago

For the time being, you can use a custom page method or method in a page model where you put this logic. And then call that method in the query syntax in your blueprint.

4 years ago

Thanks for the reply, I know that I can do it via custom page method which is why I didn’t post it in the forums. I’m putting in the suggestion because keeping the logic in the blueprint makes it a lot cleaner and easier to manage. Plus there would be a lot less glue code.

4 years ago

That’s why I wrote “for the time being” - not saying your idea suggestion isn’t valid. But for you - but also others surfing by seeing this - offering a workaround for now.

4 years ago

Got it.

4 years ago
Changed the status to
Completed
11 days ago