For the purposes of styling I have the need to put an opening <div>
at the beginning of one element, and a closing </div>
tag at the end of another. Looking over the docs for HtmlDecorator I can't seem to figure out how to get it right, or if this is even the right decorator to use. It seems wasteful to have to create my own decorator simply to achieve this.
On the element where you want to add a <div>, add this decorator :
array(
array('openDiv' =>'HtmlTag'),
array('tag' => 'div', 'openOnly' => true)
)
On the element where you want to add a </div>, add this decorator :
array(
array('closeDiv' =>'HtmlTag'),
array('tag' => 'div', 'closeOnly' => true)
)