Hello,
I’m new to modx, and I’m having some trouble with Ditto. I’m trying to format the "archive" shown below my news items--it seems to put a bunch of stuff under it that I don’t want, and I can’t seem to figure out where I can edit it’s display. Is there a chunk or template it uses so that I can format the way it displays?
Thanks,
Mike
You can use tplArch to control the formatting of the content of all li elements but otherwise everything else is hardcoded in the current version (1.0.2). The next version will feature a fully templateable archive. In the meantime you can disable the archive by using the corresponding parameter.
Wow, thanks for the speedy reply!
Hmm...is it the same with the RSS format (format="rss")? can’t format that either? Otherwise, is the next version due out anytime soon?
MODx ROCKS!
What would you need to change about the RSS formatting?
the author, i’d rather not have that display.
Sorry about that.
Ok, that’s fine. Instead, is it possible to remove the < code > root Elements from my feed? I’m using [[Ditto &format=`rss`]] to create the feed.
Thanks!
Yeah...basically I created a page in the folder I want to syndicate and put the following code:
[[Ditto &startId=`01` &format=`rss`]]
It works, but it outputs this:
<code> <?xml version="1.0" encoding="iso-8859-1" ?>
<rss version="2.0">
<channel>
<title>My School Info</title>
Notice the <code> element as the root node?? How can I remove that?
That is in your document content, not in Ditto’s output.