Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-10-05 21:46:05

plugmas.com
Member
Registered: 2007-09-05
Posts: 65

category plugin

Hi,

how did i display related article categories in on page? Example i have wrote ten article in “family” category and i want to display all the article of this category in one page.

Offline

#2 2007-10-05 22:54:48

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: category plugin

Offline

#3 2007-10-06 21:28:47

plugmas.com
Member
Registered: 2007-09-05
Posts: 65

Re: category plugin

Hi,
Create a articles list in the same category using <txp:chh_related_articles /> make a error in my web “tag_error <txp:chh_related_articles/> -> Textpattern Error: Unable to include required plugin “chh_article_lib” on line 459”

I need help. Inserting <txp:chh_related_articles /> can create a article list of the same category witout especify any category like “article” “ familiar” so so??

Thanks

Offline

#4 2007-10-07 12:37:41

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: category plugin

chh_related_articles is a plugin. I see you already asked your question in the plugin thread, good :)
But the txp:related_articles I was referring to is a native txp tag, doesn’t it do what you want?

Offline

#5 2007-10-07 17:49:20

plugmas.com
Member
Registered: 2007-09-05
Posts: 65

Re: category plugin

Pardon :-))
I was a little lost the diferent about a plugin and a native txp tag. Know i find the diferent XDD

Using <txp:related_articles label=“Related” limit=“5” /> make me a error in my site “tag_error <txp:related_articles label=“Related” limit=“5” /> -> Textpattern Notice: error_article_context on line 1887”

¿could you please give me an example? Following <txp:related_articles /> Display category familiar title, specified author

Thanks

Offline

#6 2007-10-07 18:40:36

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: category plugin

I think you should wrap it in if_individual_article tags. Something like this:

<txp:if_individual_article>
<txp:related_articles label="Related" limit="10" break="li" wraptag="ul" />
</txp:if_individual_article>

But… <txp:related_articles /> just displays the titles of the related articles, so if you want to display the author as well, it’s better to use txp:article_custom. There is an article about how to do this on thresholdstate.com.

The Alphabetical Tag Listing in TextBook describes all tags, and usually provides some examples for their use.

If the article and TextBook don’t get you where you want, just let us know :)

Offline

#7 2007-10-07 18:50:18

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: category plugin

Els wrote:

But… <txp:related_articles /> just displays the titles of the related articles, so if you want to display the author as well, it’s better to use txp:article_custom. There is an article about how to do this on thresholdstate.com.

Mmm… I think it’s not posible to use txp:artice_custom to create some custom “related articles” list.
The article by ThresholdState is about customizing txp:recent_articles.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#8 2007-10-07 21:34:11

plugmas.com
Member
Registered: 2007-09-05
Posts: 65

Re: category plugin

I found what i found. Very useful “Alphabetical Tag Listing” Thanksss

Mmmm..searching how to display popular articles i didnt found it. ¿any recommend?

I found a plugin about this “jas_popular_articles” ¿what about a txp tag?

Thanks

Offline

#9 2007-10-07 23:20:55

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: category plugin

maniqui wrote:

Mmm… I think it’s not posible to use txp:artice_custom to create some custom “related articles” list.
The article by ThresholdState is about customizing txp:recent_articles.

Thanks maniquí, I must have been sleeping…

plugmas.com wrote:

I found a plugin about this “jas_popular_articles” ¿what about a txp tag?

No native txp tag. You’ll need a plugin.

Last edited by els (2007-10-07 23:23:04)

Offline

#10 2007-10-07 23:36:13

plugmas.com
Member
Registered: 2007-09-05
Posts: 65

Re: category plugin

Thanks both :-))

Offline

Board footer

Powered by FluxBB