I have 4 main pages on my website. I create articles under all of these "containers". I have a ditto call that displays the latest 4 articles from all of these containers on the sidebar. Topic of the latest article is a link that leads to the actual article. Everything works fine, but what if I would like to redirect some of the links to somewhere else?
Lets say I want ditto generated links from first 3 containers to point to the actual article like they are doing now and the ditto generated links from the last container to point to the main page of that container.
Ditto generated links:
<a href="index.php?id=8" title="Bamboo">
<a href="index.php?id=9" title="Bamboo2">
<a href="index.php?id=10" title="Bamboo3">
Should all point to index.php?id=7 (which is the main page) instead.
And no, sorry I don’t have the site online. I hope you understand what I mean..
Thanks,
Tommy
tsavage,
Create another chunk to make template for the last article in the sidebar. (e.g. copy the original one and change the link to the article from
[~[+id+]~] to
[~[+parent+]~] - this will make the link to article container).
Then use ditto parameter
&tplLast to set the last article template.
Regards,
xEviL
"If you have nothing to say to your opponent then just look through his posts and find some spelling mistakes"