Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-02-13 20:36:48

fowler
Member
Registered: 2007-02-12
Posts: 79

pageby, offset = duplicating article entry?

trying to throw a little mini store in between posts.. code is like this:

<txp:article limit="1" pageby="6" />
<txp:output_form form="mini-store" />
<txp:article limit="5" offset="1" pageby="6" />

<txp:output_form form="mini-store" />
<txp:if_individual_article>
<p class="older"><txp:link_to_prev><< PREVIOUS POST</txp:link_to_prev></p>
<p class="newer"><txp:link_to_next>NEXT POST >></txp:link_to_next></p>
<txp:else />
<p class="older"><txp:older><txp:text item="<< OLDER POSTS" /></txp:older></p>
<p class="newer"><txp:newer><txp:text item="NEWER POSTS >>" /></txp:newer></p>
</txp:if_individual_article>

looks fine when viewing the section… but when i click on the permalink, it’s displaying the article and comments twice.
i sort of understand why, but figured that something would magically happen with the offset and pageby tags to make that not happen :p

Last edited by fowler (2008-02-13 20:37:47)

Offline

#2 2008-02-13 20:45:47

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: pageby, offset = duplicating article entry?

<txp:if_article_list>
<txp:article limit="1" pageby="6" />
<txp:output_form form="mini-store" />
<txp:article limit="5" offset="1" pageby="6" />
<txp:output_form form="mini-store" />
<txp:else />
<txp:article />
</txp:if_article_list>

Offline

#3 2008-02-13 21:06:42

fowler
Member
Registered: 2007-02-12
Posts: 79

Re: pageby, offset = duplicating article entry?

awesome, thanks

Offline

Board footer

Powered by FluxBB