Hey!
I’m new to Modx and have a best practice question:
I’m using Modx with a complex template (not designed by myself with lots of div, css classes etc).
For example a simple paragraph with a headline looks like this:
<div class="headblock"><h1>Title lorem ipsum</h1></div>
<div class="headblock2"><h2>Sub Title Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Mauris id eros in velit ornare porta.</h2></div>
<div class="level">
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit
</p>
</div>
I know all the divs seem to be unnecessary, but I have to implement this template and I’m not allowed to change it
When an editor wants to write new content, I don’t want him to have to write all the divs and css classes by himself. He should be able to create a new paragraph by providing only the real content (e.g headline1 (text), headline2(text), text(richtext)).
How would you realize this in Modx-conform way?