Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#2 2007-06-27 08:23:55

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

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

#4 2007-06-27 09:04:57

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

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

Board footer

Powered by FluxBB