Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2007-06-27 08:14:51
- jadehouse
- Member
- Registered: 2007-06-26
- Posts: 75
Small 'form' question
I’ve only been on this for a day now (I’ve read quite a lot, but my brain is still processing the way TXP does things)… so please bear with me.
I understand forms are basically includes, and I understand how to output_form form=“nameOfFormICreated”… but I’m confused why that’s the only way I can seem to get them to display without an error. I was first under the impression that I could txp:nameOfFormICreated, but I now see that I’m totally not understanding it.
Can someone try to straighten me out (yea, it’s probably not possible… but please try)!
Offline
Re: Small 'form' question
did you read txp:output form ?
Basically forms are snippets of code which you can use across templates… They could be anything
for example you can have a custom hard coded menu which you can have in a form and then call it from your various templates…
hope this will help you start making sense of the tag:)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#3 2007-06-27 08:35:31
- jadehouse
- Member
- Registered: 2007-06-26
- Posts: 75
Re: Small 'form' question
I guess my question is, is output_form the only tag I’ll ever use for forms that I create? I can’t seem to call forms I make any other way.
I guess that’s what I’m really confused about.
Thanks so much.
Offline
Re: Small 'form' question
If you intend to use forms as a substitute for includes, txp:output_form
is the only tag which makes use of it.
But forms serve another purposes, too: They are mini-templates to specify the output markup of various other tags, for instance txp:article or txp:linklist. There’s also a wide choice of plugins which render their HTML output with the help of a user defined form. And, finally, each article can have its very own distinct output form by specifying the “override form” option on the write screen.
There’s a page on Textbook covering forms.
Offline
Pages: 1