Thanks in advance for any help provided..
I’m using a getResources call twice on two separate pages within my site. As follows:
[[!getResources?
&parents=`6`
&tpl=`eventsFeed`
&includeTVs=`1`
&processTVs=`1`
&sortby=`publishedon`
&sortorder=`ASC`
]]
In the parent folder I have two resources that display perfectly.
When viewing the code the links are showing the correct links, however when clicking on the link I am taken to the correct url however the content displayed is the same for both resources.
Here is the template I use to call the resources:
<div class="events_feed_item">
<div class="events_feed_image">
<a href="[[++site_url]][[~[[+id]]]]">
<img src="[[++site_url]][[+tv.eventsImage]]" alt="[[+pagetitle]]" /></a>
</div>
<div class="events_feed_copy">
<div class="events_feed_title">
<a href="[[++site_url]][[~[[+id]]]]">[[+pagetitle]]</a>
</div>
<div class="events_feed_info">[[+description]]</div>
<div class="events_feed_intro">[[+tv.eventsArticle:notags:limit=`400`]]...</div>
<div class="events_feed_link"><a href="[[++site_url]][[~[[+id]]]]">Read more ></a></div>
</div>
</div>
<div class="clear"></div>
As you can see I’ve used the id placeholder within the links to call the resources. This is using friendly urls.
When I look at the code each resource is showing the correct url ie:
1. site_url/article-1
2. site_url/article-2
And when clicking through to these pages the correct url is shown in the address bar.
Only thing is the Article 1’s content is appearing in Article 2’s content as well.
There is no caching on the snippet calls, or the resource pages or the pages containing the snippet calls. I’ve cleared the site’s cache I don’t know how many times.