Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-08-14 14:26:02
- fallenrockzone
- New Member
- Registered: 2006-08-14
- Posts: 6
List articles by author.
I’m sure this must have been covered but I can’t find any definitive explanation.
I am new to textpattern and I want to build a blog with multiple authors. On the main page of the blog will be a picture of the author and a list of the author’s contributions.
It seems like a standard blog layout but I can’t seem to find the documentation to implement.
Thanks in advance!
Offline
#2 2006-08-14 14:53:02
- NyteOwl
- Member
- From: Nova Scotia, Canada
- Registered: 2005-09-24
- Posts: 539
Re: List articles by author.
Check out the tags listings on the TextBook site listed at the top of the page. You probably want something like:
<code>
<txp:if_article_author name=“whoever”>
<txp:article />
</txp:if_article_author>
</code>
Obsolescence is just a lack of imagination. / 36-bits Forever! / #include <disclaimer.h>;
Offline
Re: List articles by author.
The rss_suparchive plugin may also be of service to you…
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline
#4 2006-08-14 18:39:28
- fallenrockzone
- New Member
- Registered: 2006-08-14
- Posts: 6
Re: List articles by author.
Thanks everyone. Now I have new question. How would I display the first, say, 500 characters with a “read more” link?
Offline
Re: List articles by author.
there are several plugins that address excerpt length
I may be missing some, but you can try kgr_safe_excerpt, pfa_beginning, cnj_excerpt_logic, or beginning
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline
#6 2006-08-14 19:43:34
- fallenrockzone
- New Member
- Registered: 2006-08-14
- Posts: 6
Re: List articles by author.
Outstanding, thanks for the help!
I think I have the syntax, but I have one big issue. I need to build a blog like this:
category 1 -> author 1 -> author 2
category 2 -> author 3 -> author 4
I need to show all authors on the homepage with a little sample of their latest article and link to view all of their articles.
Does this make sense? Do you have any suggestions on how to achieve this? I tried using categories and sub categories but it didn’t seem to do what I wanted.
Last edited by fallenrockzone (2006-08-14 19:55:25)
Offline
#7 2006-08-14 22:02:35
- fallenrockzone
- New Member
- Registered: 2006-08-14
- Posts: 6
Re: List articles by author.
ok, i re-thought it.
I need two categories, such as: cars, planes.
I then need multiple authors that are assigned to one of those. So cars may have three authors, and planes may have two.
I need to be able to view by author, or categories. The homepage would be by based on authors.
Please help, I am soo lost here. I have a tight deadline and I am killing myself reading tutorials and other posts.
Offline
Re: List articles by author.
I think I know what you want to do but am not certain.. I’ve dropped you an email to see if we can “meet up” and clarify what you want to do.
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline
Re: List articles by author.
And you beat me to the post…
You’re sure you want these as categories? Not sections?
Alright let’s see if I’m understanding at all what you want to do here…
On the front page, something like:
<code>
<h2>Cars</h2>
<txp:article_custom category=“cars” author=“author1” limit=“1” />
<txp:article_custom category=“cars” author=“author2” limit=“1” />
</code>
<code>
<h2>Planes</h2>
<txp:article_custom category=“planes” author=“author3” limit=“1” />
<txp:article_custom category=“planes” author=“author4” limit=“1” />
</code>
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline
#10 2006-08-14 22:11:35
- fallenrockzone
- New Member
- Registered: 2006-08-14
- Posts: 6
Re: List articles by author.
so far, yes!
I chose category because it just made sense, if it’s not the best idea, then I’m not sure what would be.
Then i would also like to view all articles by that one author if I like.
Offline
Re: List articles by author.
Hm yes…
The txp:author tag should be able to handle that for you, I think. As such: <txp:author link="1" />
I don’t have personal experience sorting/calling by author, but the way I would probably approach this if I were trying to figure it out myself now, is that I’d try use that txp:author tag, and I’d also probably make an archive page where I had implemented rss_suparchive, sorting by authors with their articles automatically and neatly organized for each.
Last edited by alicson (2006-08-14 22:21:11)
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline
Re: List articles by author.
I don’t know if you ended up making this work for you, but in the meantime I went ahead and (FINALLY) upgraded 1haiku.com to Textpattern 4.0 (was still on rc1!) and implemented an archive by author.
Maybe it will help you or someone else trying to do something similar?
In my case I’m actually using a custom field (byline) rather than true Textpattern authors.. but same output.
Anyway, this is what the output looks like: 1haiku Authors Archive
and this is the main contents of the article form that created that:
<blockquote>
<txp:if_different>
<txp:mdn_if_custom field="3" empty="1">anonymous
<else /><txp:rei_show_custom customid="3" />
</txp:mdn_if_custom>
</txp:if_different>
<txp:permlink><txp:title /></txp:permlink> <txp:asy_showcat link="true" />
</blockquote>
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline