Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2009-10-08 15:14:39
- digigypsy
- New Member
- Registered: 2009-10-08
- Posts: 2
Biography Pages in TXP
hello, I have some questions for people more TXP savvy than me:
on creating a biography page on a TXP website:
1. how does TXP know to generate similar divs w/ bio data (picture, info) on a repeated, consistent basis? i’m assuming there is some sort of call function that does this?
2. how would i go about implementing this (general guidelines)?
3. any particular areas of TXP documentation that deal with this that I can learn from?
I am a novice as you can tell, so thanks for your time!
Offline
Offline
#3 2009-10-08 17:22:43
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: Biography Pages in TXP
re 1.) There are chiefly two places where you define the bits of information you want to collect: In the article tag itself (breaktag, wraptag, form/listform, …), and in the form that is called by the article tag (the body text, the title, an excerpt, custom fields, date of publishing, author, article image etc.).
This would look like
<txp:article listform="mylist" wraptag="div" />
And in your form mylist
all the elements you want your articles be represented by, e.g.
<txp:permlink><txp:title /></txp:permlink>
<txp:article_image thumbnail="1" />
<txp:excerpt />
All these “switches” can also be set in an article tag when used as a container tag, e.g.:
<txp:article>
<txp:permlink><txp:title /></txp:permlink>
<txp:article_image thumbnail="1" />
<txp:excerpt />
</txp:article>
Please have a look at the Tag Reference Page for all the “native” TXP tags.
Last edited by uli (2009-10-08 17:25:59)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#4 2009-10-08 17:56:18
- digigypsy
- New Member
- Registered: 2009-10-08
- Posts: 2
Re: Biography Pages in TXP
jm: Thanks SO much for the info, I’ll read it and try to make heads and tails!
uli: Thank you as well, great explanation, will give this a shot.
Thanks VERY much to the both of you for the time and info, is extremely helpful to a person like me!
Jake
Offline
Pages: 1