I seem to be fighting with Ditto again...
I can get it to function and do its thing just fine. If I create a container document and place a ditto call to display that document’s child pages then it does so just fine.
The issue is I want to change the presentation of how the Ditto content gets displayed. I have CSS rules for headings and paragraphs, etc in the column that this content gets displayed in. But the Ditto links, headline and summary text is not rendering well.
This is what the generated code in the Ditto area looks like:
<p><h3><a href="index.php?id=7">Article One</a></h3>
Duis autem vel eum iriure dolor in hendrerit in vulputate! Iis qui facit, eorum claritatem Investigationes demonstraverunt lectores! Molestie consequat vel illum dolore; eu feugiat nulla facilisis? Est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum.
<a href="http://localhost:8888/torfab/index.php?id=7"> read more...</a>
<h3><a href="index.php?id=6">Article Two</a></h3>
Duis autem vel eum iriure dolor in hendrerit in vulputate! Iis qui facit, eorum claritatem Investigationes demonstraverunt lectores! Molestie consequat vel illum dolore; eu feugiat nulla facilisis? Est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum.
<a href="http://localhost:8888/torfab/index.php?id=6"> read more...</a></p>
<p> <span class='ditto_currentpage'>1</span> </p>
The whole Ditto content is getting wrapped in a paragraph tag. Inside that are H3 tags and inside those are anchor tags for the articles themselves. This seems odd for some reason.
Do folks have a good approach for customizing the appearance of Ditto content? Do you add extra CSS for the code that Ditto outputs? Any tips on doing this? Or do you add some code to a template or chunk? Some of the snippets in MODx have its own CSS which comes in handy. Not so with Ditto? Or am I missing something?
Thanks!