Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#16 2009-10-11 11:40:43
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,331
Re: list of article, pagination, different frontpage
jsoo wrote:
OK, sorry for misunderstanding (again, tiny Internet device not conducive to code evaluation). Glad you have it working. You should be able to slim it a little, by eliminating the if_section tags and adding the section attribute to soo_if_frontpage (keeping the if_article_list block as the outer block).
i tried, but it affected badly my other sections
Offline
#17 2009-10-11 12:44:11
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,331
Re: list of article, pagination, different frontpage
…and get it properly work with ob1_pagination as well. thank you uli, els, jsoo
working code:
<txp:if_section name="artiklid">
<txp:if_article_list>
<txp:soo_if_frontpage pg="1">
<txp:article limit="3" pageby="10" />
<ul class="pealkirjad"><txp:article form="article_b" offset="3" pageby="10" limit="7" /></ul>
<txp:ob1_pagination previoustext="Uuemad" nexttext="Vanemad" ulclass="pagination" liselected="active" />
<txp:else />
<ul class="pealkirjad"><txp:article form="article_b" offset="0" pageby="10" limit="10" /></ul>
<txp:ob1_pagination previoustext="Uuemad" nexttext="Vanemad" ulclass="pagination" liselected="active" />
</txp:soo_if_frontpage>
<txp:else />
<txp:article />
</txp:if_article_list>
</txp:if_section>
Offline