Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-10-18 23:00:37

berchman
New Member
Registered: 2005-03-02
Posts: 7

How do I accomplish the following?

I developed a student blog on the back ot Textpattern. You can see it here:
http://tinyurl.com/87xdz

There are individual landing pages for each writer/blogger (16 Total). On each landing page is a brief bio and answers to some common questions. Following this is a list of their specific posts.

Here is a sample individual landing page: http://tinyurl.com/bonjk

My question is this. How do I manage the content of these landing pages within Textpattern?

Right now each landing page has its own template that has the bio information hard-coded into it. The rub is that non-technical people (editors) want to get in and edit the content of these individual bios. But because of the way they are setup they can’t.

Does anyone have any ideas on how this can be done?

Like I said each writer has their own landing page with the content hard coded. Can I create the bios as stories and then pull those specific stories to the template? If so, how do I do that?

Thanks,
Bert

Offline

#2 2005-10-18 23:05:07

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

Re: How do I accomplish the following?

If each of these “landing” pages has it’s own section then yes, allocating a bio-article to that section will enable “txp:article” to show it. You might also consider making them “sticky” so that they will remain in situ whilst other articles in the same section get rotated.

In fact if the only difference between these landing pages is the content you should only need a single page template which could be used by all the sections.

Last edited by thebombsite (2005-10-18 23:09:06)


Stuart

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

Offline

#3 2005-10-18 23:22:12

berchman
New Member
Registered: 2005-03-02
Posts: 7

Re: How do I accomplish the following?

thebombsite wrote:
In fact if the only difference between these landing pages is the content you should only need a single page template which could be used by all the sections.

How would the syntax for that work? Having only one template and wanting a specific article to be displayed is something I’ve not done yet.

Thanks!

Offline

#4 2005-10-19 01:39:40

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

Re: How do I accomplish the following?

Well on the basis that you use “sticky” for the bio-articles and it is the only “sticky” in each section you could use something like:-

<code>
<txp:article status=“sticky” form=“FormName” />
<txp:article form=“FormName” limit=“5” /></code>
<br />

Obviously you will need to create a new form to use for your bio’s which, of course, can be used for all of them. The txp:article tag is context-sensitive so it will only call articles from the section you are viewing unlike txp:article_custom which can call articles from anywhere.

Last edited by thebombsite (2005-10-19 01:41:07)


Stuart

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

Offline

#5 2005-10-19 18:21:52

berchman
New Member
Registered: 2005-03-02
Posts: 7

Re: How do I accomplish the following?

This all worked out very well with some tweaking on my end to make it work.

Many thanks to thebombsite!!!

Cheers,
Bert

Offline

#6 2005-10-19 21:33:35

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

Re: How do I accomplish the following?

No problem. :)


Stuart

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

Offline

Board footer

Powered by FluxBB