Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-02-08 19:53:37

scdoody
Member
Registered: 2006-10-18
Posts: 129

Help with blog / author issue

I have a section called blog that uses the form called blog. On the blog form I have this code:

<txp:if_individual_article> <p><txp:link_to_prev><txp:prev_title /></txp:link_to_prev> <txp:link_to_next><txp:next_title /></txp:link_to_next></p>
<txp:else /> <p><txp:older><txp:text item=“View Previous Posts” /></txp:older> <txp:newer><txp:text item=“View Newer Posts” /></txp:newer></p>
</txp:if_individual_article>

</div>

What I’m really doing is hoping I can use one page (blog) to display an individual blog for each team member. To do this, I plan on creating a section called sarahBlog that uses the form blog. I need to know if on my blog form I can add code that will say “if section equals sarahBlog, only diplay blogs authored by Sarah”.

Is this possible?

Offline

#2 2008-02-08 20:26:37

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Help with blog / author issue

The <txp:article /> tag is context-sensitive so it will only show articles belonging to the section you are viewing. You probably won’t need to use <txp:if_section name="sarahBlog"></txp:if_section> tags but they are there if you do. Does that help?


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

Board footer

Powered by FluxBB