LinkWithin presentation with etc_query
, per this request. Below are three preceding articles in the same category (amended with some ajax/style). One could add article images and style them as necessary.
Add this to the individual article part of your article form:
<txp:variable name="category-list">
<txp:article_custom limit="999" category='<txp:category />' sort="Posted DESC">
<txp:permlink><txp:title /></txp:permlink>
</txp:article_custom>
</txp:variable>
<txp:etc_query
data='<txp:variable name="category-list" />'
query='a[@href=''<txp:permlink />'']/following-sibling::a[position()<4]'
break="div" />
File(s)
- File: etc_query.txt [60.72 kB] (4258 downloads, ~29 per month)