Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-05-29 08:56:29

rathersplendid
Plugin Author
From: London
Registered: 2008-05-02
Posts: 163
Website

Two featured items followed by the other items. How?

I want to have the two most recent articles/items displayed differently to the rest of the items. The featured items would only have a slightly bigger image and slightly different layout to the rest. I then want the following items to appear below in a unordered list. I (think) I know that there needs to be two article_customs, am I right?

Obviously when a permalink for each article is clicked, that article would load and the others would dissapear.

Can anyone help me?

Cheers


Admin Themes Prometheus | Stung | <txp:coder/
My Portfolio | ɹǝpuɐz.com | @MrMartineau
<txp:coder /> – Convert your designs into Textpattern-based websites
jQuery Style | @jquerystyle

Offline

#2 2008-05-29 09:36:11

sthmtc
Member
From: CGN, GER
Registered: 2005-01-17
Posts: 586
Website

Re: Two featured items followed by the other items. How?

rathersplendid wrote:

I want to have the two most recent articles/items displayed differently to the rest of the items.

<txp:article limit="2" form="featured" />

I then want the following items to appear below in a unordered list.

<txp:article limit="99" offset="2" form="others" />

Offline

#3 2008-05-29 10:48:37

rathersplendid
Plugin Author
From: London
Registered: 2008-05-02
Posts: 163
Website

Re: Two featured items followed by the other items. How?

sthmtc, thank you for your help. It worked really well!

I have another problem…these pages now display fine, but when I click the permalink and am greeted with a page with 1 featured item and another smaller version. They display exactly as per the previous page, except that they display only one article as per the original articles page, do you understand?

I would like to have a page for the list of items and a seperate page for the individual article.

Can you help?

Cheers again


Admin Themes Prometheus | Stung | <txp:coder/
My Portfolio | ɹǝpuɐz.com | @MrMartineau
<txp:coder /> – Convert your designs into Textpattern-based websites
jQuery Style | @jquerystyle

Offline

#4 2008-05-29 12:04:35

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Two featured items followed by the other items. How?

<txp:if_individual_article>
	<txp:article form="my-article-view" />
<txp:else />
	<txp:article limit="2" form="featured" />
	<txp:article limit="99" offset="2" form="others" />
</txp:if_individual_article>

Offline

#5 2008-05-29 12:14:05

rathersplendid
Plugin Author
From: London
Registered: 2008-05-02
Posts: 163
Website

Re: Two featured items followed by the other items. How?

Gocom / Jukka! Thank you, it worked like a charm! I really appreciate you help.


Admin Themes Prometheus | Stung | <txp:coder/
My Portfolio | ɹǝpuɐz.com | @MrMartineau
<txp:coder /> – Convert your designs into Textpattern-based websites
jQuery Style | @jquerystyle

Offline

Board footer

Powered by FluxBB