I have a ditto spitting out pages using a template with a snippet call. When showPublishedOnly=1 it processes and runs the snippet correctly but when showPublishedOnly=0 it prints the snippet call as text. Unfortunately I need the latter. I’m using Ditto 1.0.2 and I know some might want to suggest upgrading to the newer version but this project is on deadline so that’s not an option at this point. How can I get ditto to process the snippet in the chunk with unpublished articles?
Try switching from a cached to uncached call or vice versa.
switching calls doesn’t seem to have any affect. heres what i have
[[Ditto? &startID=`94` &paginate=`0` &emptyText=` ` &displayArchive=`0` &trunc=`0` &showPublishedOnly=`0` &tpl=`archives_partners_tpl` &sortBy=`menuindex` &sortDir=`ASC`]]
//archives_partners_tpl
<h4>[+title+]</h4>
<span class="content_paragraph no_border">
[+content+] [[people_links? &link=`[+menuindex+]`]]
</span>
//people_links
<?php
if($menuindex > 4)
{
?>
<a href="index.html" target="_blank">See more »</a>
<?
}
?>
-------------------------------------------------------------
Again, when showPublishedOnly=1 this works fine but when showPublishedOnly=0 it does this
Article Title
This is the content for the article. [[people_links? &link=`2`]]
You need to alternate the calls. Thus if you have [! as your Ditto call you will need to use [[ inside the template or vice versa. This s a limitation of the current MODx parser but it will no-longer be an issue post 0.9.7.