Hi,
I changed from Etomite to Modx a few months ago and I’m absolutely thrilled by the possibilities.
But (:))
I want to have a content block in a sidebar where I can put a block relating to the current page. But if none exists, search it’s parent(s) until a block is found.
In Etomite there is a snippet called getsidebar to do just that :
http://dahlgren.slyip.com/getSidebar.html
The snippet doesn’t work in MODX and modifying it is beyond my skills.
This snippet looks for an unpublished child document with a page title of "sidebar".
If not found, it looks above for an unpublished sibling titled "sidebar".
If not found, it looks for an unpublished doc adjacent to it’s parent...
and so-on to the topmost level.
I’ve been experimenting with TV’s to get this done, but no luck yet.
Any thoughts?
Txh!