I am absolutely stuck with trying to figure out a glitch I have with template variables.
I tried going to the official documentation, but the doc page for template variables is broken...the text loads, but all of the images are broken (this is on
http://svn.modxcms.com/docs/display/Evo1/Creating+a+Template+Variable ).
After Googling this and not getting an answer, I went to IRC but the only other person there couldn’t figure this out either.
My needs are fairly simple. I want to have a single template that depending on the value of the template variable, either does or doesn’t display the pagetitle within the content area.
In my template, I have ’[*pgtitle*]’ within my page.
My template variable has the following (relevant) settings:
Template Variable Name: pgtitle
Input Type: DropDown List Menu
Input Option Values: Yes==<h3>[*pagetitle*]</h3>||No==<!-- no title -->
Default Value: Yes
Widget: none selected
I have enabled my template within the Template Access section.
When I go to the various pages within the site and choose either Yes or No within the drop-down list and save the page, there is no change in the page output or html output.
I also tried changing to a checkbox, but cannot for the life of me figure out how to get that to work either.
Help!