Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-01-19 16:19:42

anoke
Archived Plugin Author
Registered: 2006-04-15
Posts: 152

How to make author pages?

“How Do I…” use <txp:author link=“1”/>?

Can I use a different page for author stuff or must I use default page?

It links to localized section. Do I have to make this section and give it a new page? Or should I just use it in default page and throw in if_author? I use default page for front page & search results and use different page for sections usually… The effortless way is to make default page for front page, search results, archives and different page for other sections perhaps?

Links/how-tos/rantings on the subject? Plugs? Tips even?


- When chickens are cold, they roost in trees; when ducks are cold, they plunge into water -

Offline

#2 2007-01-22 15:49:00

monkeynotes
Member
From: UK
Registered: 2005-04-13
Posts: 41

Re: How to make author pages?

Bump!

Offline

#3 2007-01-22 17:20:13

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: How to make author pages?

It depends on whether you need a info page for any author (+ article list), or only an article list for the author.

In the first case, you may use my bos_author plugin as txp:author replacement, that lets you link to a section in which every article has authors’ name and should be written by the author itself (you may fake this with this plugin). In the article you can write bio or whatever. In the template place a chh_related_article tag with relation=“author” to list article by other section from the same author.

In the second case you need if_author conditional in the default template.

I used both approaches for different sites and they work fine.

Z-

Offline

#4 2007-01-22 17:57:46

monkeynotes
Member
From: UK
Registered: 2005-04-13
Posts: 41

Re: How to make author pages?

Thank you for your reply Zanza, FYI I am looking for information on how to create an article list for the author. It seems strange that one can’t simply create a section called “author” and control all author page requests that way. For now I will just go ahead with your suggestion of using the if_author conditional.

EDIT: I have just discovered that the if_author conditional requires you to list the names of authors that you want the conditional to apply to. I want to be able to apply an author listing form for all authors. It is frustrating that the functionality is there to display all articles by one author but we are pretty much restricted to displaying these articles using the default page only.

Last edited by monkeynotes (2007-01-22 18:11:26)

Offline

#5 2007-01-22 18:32:17

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: How to make author pages?

monkeynotes wrote:

EDIT: I have just discovered that the if_author conditional requires you to list the names of authors that you want the conditional to apply to. I want to be able to apply an author listing form for all authors.

The textbook is a little tricky: the tag doesn’t requires you to list authors. It simply offers you the option. But if you don’t list the author, then the conditional will apply to every author called by txp:author.

It is frustrating that the functionality is there to display all articles by one author but we are pretty much restricted to displaying these articles using the default page only.

This is true, the default template should be adapted for different usage: search results, authors, category listings, and home page.

But you can have separate sections/templates for the search and for the categories. For the author I think you can’t do anything else that using the conditional. It’s not that hard, though.

Bye!

Z-

Offline

#6 2007-01-30 20:02:01

anoke
Archived Plugin Author
Registered: 2006-04-15
Posts: 152

Re: How to make author pages?

@Zanza: thanks for tips.. 4.0.4 brought us some more (section, this_section) parameters and I’ve been using them..

I think some problems I’m facing are because <txp:if_section name=“foo”><txp:if_author> doesn’t parse. It might be due ‘form-in-form’ page handler strategy I’ve been using.. Then again if I have url /sectionname/?author=Foo the <txp:article /> behaves just like expected. On the ‘front page’ the <txp:if_author> works right. So wondering summarised: I just don’t know where <txp:if_author> should work.


- When chickens are cold, they roost in trees; when ducks are cold, they plunge into water -

Offline

Board footer

Powered by FluxBB