Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-07-14 21:03:22

blazin6543
Member
From: Toronto, Canada
Registered: 2006-06-19
Posts: 103
Website

1 article on main page

ok ive tried adding new pages and limiting to 1 article rearranging pages here and there ….. but then when i click on a category it only shows 1 article instead of all…… im not sure what else to do can i get some help? i want to have just 1 article on the front page (like an intro page) but the rest to have more then 1 article in view

Offline

#2 2006-07-14 21:50:40

NyteOwl
Member
From: Nova Scotia, Canada
Registered: 2005-09-24
Posts: 539

Re: 1 article on main page

Perhaps something like:

<code>
<txp:if_section name=”“>
<txp:article limit=“1” />
<txp:else />
<txp:article /> <
</txp:if_section>
</code>
<br />


Obsolescence is just a lack of imagination. / 36-bits Forever! / #include <disclaimer.h>;

Offline

#3 2006-07-15 07:46:47

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,350
Website GitHub Mastodon Twitter

Re: 1 article on main page

Using the glx_if plugin

<code>
<txp:glx_if_frontpage>
<txp:article limit=“1” />
<txp:else />
<txp:article limit=“10” />
</txp:glx_if_frontpage></code>

In this way yoursite.com page will have 1 article yoursite.com/?pg=1 will have 10

Last edited by colak (2006-07-15 07:47:41)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB