Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2013-01-23 11:07:16

bashirnoori
Member
From: Afghanistan
Registered: 2012-10-02
Posts: 84

first article shows "Title,IMG, Intro" other four articles just title

Hello dear all,
You might see in news websites, in a category there will show 5 articles:
1 article with title, image + intro
and other four of them just show titles.
possible with textpattern ?

Offline

#2 2013-01-23 11:22:37

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

Re: first article shows "Title,IMG, Intro" other four articles just title

<txp:article_custom limit="1">
<txp:article_image />
<txp:title />
<txp:excerpt />
</txp:article_custom>
<txp:article_custom offset="1" limit="4">
<yxp:permlink><txp:title /></txp:permlink>
</txp:article_custom>

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

Offline

#3 2013-01-23 12:22:25

etc
Developer
Registered: 2010-11-11
Posts: 5,397
Website GitHub

Re: first article shows "Title,IMG, Intro" other four articles just title

Alternative solution:

<txp:article limit="5">
  <txp:permlink><txp:title /></txp:permlink>
  <txp:if_first_article>
    <txp:article_image />
    <txp:excerpt />
  </txp:if_first_article>
</txp:article>

Offline

#4 2013-01-23 13:05:05

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

Re: first article shows "Title,IMG, Intro" other four articles just title

etc wrote:

Alternative solution:

Better!


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