Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
How to get author's post routed to archive page
Hi all. I am using <txp:author link="1"/>
and I get a link like:
<a href="http://mywebsite.com/author/FirstName+SecondName/">FirstName SecondName</a>
But when I click on it I go to the home page. How is it expected I handle this link?
Must I create a specific archive page? I mean, how should I manage its routing?
Offline
#2 2011-06-24 17:39:21
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: How to get author's post routed to archive page
The tag works more or less like the <txp:category />
tag. So you can use section
or this_section
to direct the link to a section page, and on the page template where the link goes you need a <txp:article / >
tag. A page like /site.com/section/?author=Author+Name will then display the articles by that author.
If you are using conditionals like if_category, if_search on the page, you might want to add if_author.
Offline