Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-07-15 02:45:32

amyng
Member
Registered: 2007-01-05
Posts: 55

Multiple authors: rss_unlimited_categories instead of <txp: article />

I’m currently using rss_unlimited_categories to output my articles in my website, instead of the normal <txp: article /> as I’ve wanted the capability to output a list of category tags (and unlimited categories) along with my published articles.

My problem is that now I find it hard to tweak the output according to what I want. For example, my site will have multiple authors and I wish to click on their name and be able to see the list of their articles, such as mentioned in this thread. But because I’m using rss_uc, I can’t do it the same way.

Here’s my page template:

<txp:if_article_list>
	<txp:rss_uc_article_list limit="10" section="article" />

</txp:if_article_list>




<txp:if_individual_article>
	<txp:article />


<txp:else /> 

And here’s my default form:

<h3><txp:permlink><txp:title /></txp:permlink></h3> <br><h4>Posted by <b><txp:author link="1" /></b> on <txp:posted /></h4>


<txp:if_article_list>
	<txp:if_excerpt>
		<txp:excerpt />
		<p><txp:permlink>read more>></txp:permlink></p>
	<txp:else />
		<txp:body />
	</txp:if_excerpt>
</txp:if_article_list>

<txp:if_individual_article>
	<txp:body />
</txp:if_individual_article>

Is there a workaround this? (p/s— I’m putting this out in the public thread as I notice that rss_uc is now orphaned..)

Any help would be much appreciated!

warmest,
Amy

Last edited by amyng (2009-07-15 02:46:08)

Offline

#2 2009-07-15 09:29:16

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: Multiple authors: rss_unlimited_categories instead of <txp: article />

Change read more>> to read more &gt;&gt; – i’m not sure that your example would be escaped and safe for your site layout


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#3 2009-07-15 10:59:38

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Multiple authors: rss_unlimited_categories instead of <txp: article />

Obviously this won’t get you the same functionality vis-a-vis categories, but you could add an if_author block to your page:

<txp:if_article_list>
	<txp:if_author>
		<txp:article />
	<txp:else />
		<txp:rss_uc_article_list limit="10" section="article" />
	</txp:if_author>
</txp:if_article_list>

amyng wrote:

I added a “/” to the closing tag for <txp:if_author> that you missed. No biggie!

Thanks — corrected above also.

Last edited by jsoo (2009-08-03 11:22:10)


Code is topiary

Offline

#4 2009-07-15 14:53:07

amyng
Member
Registered: 2007-01-05
Posts: 55

Re: Multiple authors: rss_unlimited_categories instead of <txp: article />

the_ghost wrote:

Change read more>> to read more &gt;&gt; – i’m not sure that your example would be escaped and safe for your site layout

Thanks for the tip — I just changed it!

<txp:if_article_list>
	<txp:if_author>
		<txp:article />
	<txp:else />
		<txp:rss_uc_article_list limit="10" section="article" />
	</txp:if_author>
</txp:if_article_list>

Thanks jsoo! it worked like a charm (a note though, I added a “/” to the closing tag for <txp:if_author> that you missed. No biggie!)

regards,
Amy

Offline

Board footer

Powered by FluxBB