Yes, there are various ways to do this kind of thing in MODx but it’s something that always seems to cause confusion and questions, especially when working with developers new to MODx. I needed something that was simple, easy to explain, reliable and easy for developers and for clients to use when editing pages.
ChunkIf allows you to place simple decisions into your templates whether to display something or not, based on a template variable being set. This means that templates can easily adapt to whatever information has been entered in the manager by end users.
There are instructions on the
repository page, and also on my
blog.
I’m going to post some more real world examples on the blog soon and I’ll post here when I do.