Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2007-04-12 08:09:03

Aleksandersen
Member
From: Lillehammer, Norway
Registered: 2007-04-12
Posts: 77

Re: [howto] Display articles grouped by categories (aka rss_suparchive_bycat)

Hi, I am new to, and have never actually tried using Textpattern. But I am considering moving from WordPress. Please excuse me if my question is lame or has already been answered. I just want to get this explained before I try Textpattern.

Would this allow me to create an index page (“front page”) that could display the three latest articles from all categories? -and does Textpattern support costume excepts for this and for RSS (like WorePress’ <!--more-> function)?

Update I realise this is an old thread, and I figured it was better to open a new, more spesific thread.

Last edited by Aleksandersen (2007-04-12 10:55:50)

Offline

#14 2008-12-31 10:13:57

quemultimedia
Member
From: Nairobi
Registered: 2008-12-31
Posts: 42
Website

Re: [howto] Display articles grouped by categories (aka rss_suparchive_bycat)

Guys,
Pardon me if I sound ‘lost’, I believe I can get some help here. I’d like to achieve the following, limiting the articles to 5 articles per category:

<code>
<!— Start .featured_posts —>
<div class=“clearfloat”>
<h3 class=“cat_title”><a href=”#” title=“View all posts in Category” >Category Name</a> &raquo; </h3>
<div class=“title”><a href=”#” rel=“bookmark”>Article Title Here</a></div>
<div class=“meta”>[31 Dec 2008 | <a href=”#” title=“Comment on Article”>15 Comments</a> | 3,115 views]</div>

<div class=“brief”>

<a href=”#” rel=“bookmark” title=“Permanent Link to Article”> <img src=“images/front/images.jpg”
alt=“Image Alt Text” class=“left” width=“150px” height=“150px” /></a>

<p>Nulla faucibus erat non pede. Pellentesque imperdiet, diam ut elementum aliquet, mi felis placerat risus, at iaculis nisl enim nec purus. Donec dictum pede at risus. <br /> Vivamus pretium molestie lorem. Aliquam erat volutpat. Phasellus eleifend, turpis a laoreet pretium, orci urna porta turpis, id sagittis est urna gravida eros. Donec gravida. Nam vehicula vestibulum mauris. Nullam rutrum adipiscing ligula. Mauris ut leo at nisi feugiat ultrices.</p> </div>

</div>

</code>

See: http://forum.textpattern.com/viewtopic.php?id=29311

Cheers guys….


Que,
Que-Multimedia

Offline

#15 2010-12-01 09:00:44

laptophobo
Member
Registered: 2010-03-01
Posts: 216
Website

Re: [howto] Display articles grouped by categories (aka rss_suparchive_bycat)

I’m trying to separate my Articles on my Home page by Sections or Categories. What I’ve tried so far isn’t working. Basically, I have 2 separate columns on my Home Page. One is for General Articles, and the other for Upcoming Events. These columns will list only the most recent 3 of each.

The Article tag I’ve been using puts both Categories (i.e.: General Articles, Upcoming Events) together.

Here is an example of my Event tag:
<txp:article form=“event-form” limit=“5” form=“excerptsform” />

Here is an example of my event-form:

<txp:if_individual_article>
<h2 class=“entry-title”><a href=”<txp:permlink />”><txp:title /></a></h2>
<txp:else />

<h2 class=“entry-title”><a href=”<txp:permlink />”><txp:title /></a></h2>
</txp:if_individual_article>

<p class=“published”><txp:posted /></p>
<div class=“entry-content”>
<txp:body />
</div>

<address class=“vcard author”>— <span class=“fn”><txp:author /></span></address>

<p class=“tags”><txp:category1 section=“events” title=“1” link=“1” />, <txp:category2 section=“events” title=“1” link=“1” /></p>

<txp:comments_invite wraptag=“p” />
<div class=“divider”><txp:image id=“1” /></div>

<txp:if_last_article><ul class=“directory”>
<txp:older><p>View Older Articles</p></txp:older></txp:if_last_article>

ANY GUIDANCE would be much appreciated. Thanks!

Last edited by laptophobo (2010-12-01 09:02:05)


Living the Location-Independent Life: www.NuNomad.com

Offline

#16 2010-12-02 13:41:19

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: [howto] Display articles grouped by categories (aka rss_suparchive_bycat)

laptophobo Use <txp:article_custom /> … section=“section name” Restrict to articles from specified section(s). … category=“category name” Restrict to articles from specified category/ies.


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

Board footer

Powered by FluxBB