LinkWithin without

1 November 2012, 11:44

Keywords: carousel, related

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.

Current article: Grouping articles

Tricky ProblemYear 4.7Automatic links

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)