Hi,
I currently have content pages that can have call out boxes within the main body of the page. So i need wrap parts of the content within a div to allow for the call outs to float nicely next to the relevant paragraphs. Below is an example, see the callOut and halfColumn divs, these always appear together but could appear anywhere in the content. So could be first, last or somewhere in between.
<h2>sub header</h2>
<p>some content</p>
<h2>sub header</h2>
<p>some content</p>
<div class="halfColumn">
<h2>sub header</h2>
<p>some content</p>
</div>
<div class="callOut">
Call out content
</div>
<h2>sub header</h2>
<p>some content</p>
So what i've actually done is set up MIGX with varying templates, if you have a callout you select the callout template and so on.
This works fine but is it the right way to go, is there a better option, is there anything wrong with using MIGX for the whole of the content on a page?
I'd thought about just having the call outs box in a MIGX list and then within the content you specify specific MIGX tag
I think this could potentially be a cleaner way of doing it but TINYMCE has that lovely habit of wrapping everything in a <p> tag, I know you can turn that off but then it doesn't wrap anything which is probablly more annoying.
Would you approach this differently, i'm interested to know if so and how as been thinking for a while the best way to do this.