Hi,
I use ditto 2.1 to show a summary of articles on my front site
My call is this:
[!Ditto? &parents=`26` &display=`4` &orderBy=`createdon DESC` &tpl=`shortStory` &extenders=`summary`&truncLen=`50` &filter=`ShowOnHomepage,1` &seeTruUnpub=`1`!]
I have a TV which holds a article image for each article, and I use the snippet MiniPhoto to make a thumb. So far so good...
What I want to achieve is Ditto to show the chunk, called longStory, when the article on the front is clicked. Why? I want the TV article image to show on the full story.
Here is my chunk for shortStory, which shows on the front page.
<div class="grid_3">
<h2><a href="[~[+id+]~]">[+pagetitle+]</a></h2>
<a href="[~[+id+]~]" title="[+pagetitle+]"><img src="[[MiniPhoto? &file=`[+articleImage+]` &width=`200` &height=`150` &quality=`93` &dir=`mini` &isclip=`1` &interlace=`0` &bgcolor=`ffffff`]]" /></a>
[+summary+]
<p><a href="[~[+id+]~]">Read more</a></p>
</div>
Here is my chunk for longStory, which I want Ditto to use when an article on the front site is clicked
[+pagetitle+]
<img src="[+articleImage+]" />
[+content+]
Is this possible to do with Ditto in one call? Something like defining in the call, a tpl for the short story and a tpl for the full story?
If this is not possible, is there a workaround to make it work?
I’m a bit confused I have to say...
Hoping for an answer. Thanks.
Murias