I’m using Ditto 2.1+, Jot 1.1.4, and Reflect 2.1 to create a blog within MODx. After pouring over the tutorials, wikis and forums, still having some problems. This stuff is harder than it seems to figure out…
Using the MODx demo as an example…
Getting the Same Info to Appear on Multiple Pages and Getting a Tag Landing Page
I’m using the same page template for all pages in the blog (its homepage + individual blog pages). How do I get the code (the Ditto call and Reflect call) to display on all pages? It originally only appeared on the homepage, and now after much fiddling, I can’t even get the homepage to load (blank white page). I’m also trying to create a "tags landing page" (watched the screencast), followed it pretty closely, but can’t get page w/ID 7 to load with the tag results. It just hangs.
This is the code in the template page. (I tried &parents instead of &targetId, but that didn’t work). On all pages but the homepage, I was getting "The Ditto object is invalid. Please check it." for the Ditto snippet and "No documents found." for the Reflect snippet.
[[Ditto? &targetID=`1` &summarize=`4` &total=`20` &commentschunk=`Comments` &tpl=`nl_sidebar` &showarch=`0` &truncLen=`100` &truncSplit=`0`]]
[[Reflect? &dittoSnippetParameters=`targetID:1` &groupByYears=`0` &showItems=0` &tplMonth=`reflect_month_tpl`]]
This is the code in the content area for page ID of 1. I’m filtering out page ID of 2 since it’s a signup form and page ID of 7 since it’s the tags landing page.
[[Ditto? &startID=`1` &summarize=`4` &total=`all` &removeChunk=`Comments` &filter=`id,2,2|id,7,2` &tpl=`ditto_blog` &paginate=`1` &extenders=`summary,dateFilter` &paginateAlwaysShowLinks=`1` &tagData=`tags` &tagDelimiter=`, ` &tagDocumentID=`7`]]
This is the code in the "ditto_blog" chunk.
<h3><a href="[+url+]">[+title+]</a></h3>
<p>By <strong>[+author+]</strong> on [+date+]. Tags: <a href="[+url+]#commentsAnchor">([!Jot?&docid=`[+id+]`&action=`count-comments`!])</a> / Tags: [+tagLinks+]</p>
[+summary+]
[+link+]
Many thanks!!