Blog Sections Open
Changing Link Text Based on the Current Parent Section
A small but useful navigation pattern for section-aware text in Evolution CMS templates.
Sometimes a template needs to show different link text depending on which top-level section the current page belongs to. That is not really a content problem. It is a tree-awareness problem.
Typical pattern
[[UltimateParent:is=`2`:then=`Text for section 2`]]
[[UltimateParent:is=`5`:then=`Text for section 5`]]
This lets one template behave differently depending on the current branch of the resource tree.
Why it is useful
Section-aware labels help the interface feel more specific without duplicating whole templates. As long as the tree structure is stable, using the top-level parent as a routing signal is a practical Evolution CMS pattern.
Why MODX API Mode Can Still Leave You with an Empty Config Array
How to troubleshoot API bootstrap scripts when MODX_API_MODE is enabled but the expected Evolution CMS config values still do not appear.
Making TinyMCE Output Styles Instead of Deprecated Tags
How to configure TinyMCE so formatting actions generate style-based markup instead of older presentational tags where possible.