A Chunk is used in many pages and different page may require different style.
We can use Placeholder to pass in the value.
[[+placeholder_name]]
For exmaple, now we want our home page have blue title and about page have green title.
First, we copy the interior template and create the new template call ' Home template ' and ' about template '.
In Html_header Chunk:we set up the placeholder
<Headerclass= "group"> <Divclass= "logo"> <H1style= "COLOR: [[+html_header_color]]">[[*longtitle]]</H1> </Div>
In the Home template:a '? ' followed by ' & ' to pass in K-v pair
[[$html _header?&html_header_color= ' LightBlue ']
In the about template, we don't just like:
[[$html _header]]
What we want are use Defulat value for the placeholder.
Defulat Value:
First:click ' Unlock default Properites ', then create new property. We set color as LightGreen.
Save it.
Then the page should display as we want.
[MODX] 3. Placeholder +