I guess there is something simple and fundamental I am missing here so thanks for your patience.
I am embedding a snippet to do some Ditto processing in a chunk, this is the Ditto tpl
<!--
[+course-date-begin+]
[+course-date-end+]
-->
[[shortCourseSnippet? &course_id=`[+course id+]` &thispage=`[*pagetitle*]`]]
I assume that I need the placeholders within the html comment because the snippet isn't cached, without the comments nothing displays. (this was true when I used PHx within the chunk too)
So, going by the documentation I tried this;
[!shortCourseSnippet? &course_id=`[+course id+]` &thispage=`[*pagetitle*]`!]
and that just printed itself to my page (multiple times), ie no processing happened
so what's wrong here?
the first example works perfectly, if a little counter intuitively.
The output I am trying to produce looks like this;
Sat 14 July – Sun 15 July
Sat 18 August – Sun 19 August
Sat 22 September – Sun 23 September
where the dates are only listed for a particular course (identified by the TV 'course id' above)
[ed. note: Chris Pink last edited this post 14 years, 5 months ago.]