Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2014-01-31 03:46:15
- kevlove92
- Member
- Registered: 2014-01-15
- Posts: 14
form and list form?
whats Difference between the 2?
Offline
#2 2014-01-31 03:53:06
- GugUser
- Member
- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,477
Re: form and list form?
See txp:article.
Offline
#3 2014-01-31 11:30:51
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,315
Re: form and list form?
First of all “form” in TXP has nothing to do with a web form to fill in. It’s a container for a set of tags, HTML tags and TXP tags, that’s re-usable and thus becoming some kind of mould for your content.
The article tag allows you to have single articles and article lists both use the same page template, regardless of which of these is currently displayed. You as the designer might want to show different elements of an article depending on the current mode (list/single), e.g. you might want to show an excerpt on list pages, surrounded by permlinks, then on single article pages you prefer the body text and some custom fields displayed, but no permlinks at all.
By specifying a listform you allow TXP to use a different form for a different set of article elements.
If you prefer having code for individual articles and lists in one form you can as well use the tag pair if_article_list
in combo with an else
tag, or if_individual_article
tags in combo with else
, respectively. That’s all simply a matter of your way of working.
Edit: Sentence construction
Last edited by uli (2014-01-31 11:35:26)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Pages: 1