Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-02-25 11:06:22

elduderino
Member
From: Whitstable. south-East England
Registered: 2006-01-02
Posts: 175
Website

swap from the default form?

Right ive been using the default article form so far to create new articles. which looks like this:

<code><h3><txp:permlink><txp:title /></txp:permlink>
<txp:body />
<txp:comments_invite wraptag=“p” />
<div align=“center”> </div></code>

Now ive decided want a post with a picture on it, so ive found out how to do it which is fairly straightfoward and has left me with a new form looking like this:

<code><h3><txp:permlink><txp:title /></txp:permlink>
<div class=“artimage”><txp:article_image /></div>
<txp:body />
<txp:comments_invite wraptag=“p” />
<div align=“center”> </div></code>

( im applying some positional styling to the picture)

Now my question is how do i get this new form selected when i want to use it. Ive tried making it the selected form in the forms section and then going to write and writing a new article and attaching a pic but txp seems to be still using my default form.

I have actually gone back to forms and put the article image code in my default form just to see if it wokrs and it does.

Could anyone tell me how i would go about swapping forms?

Thanks

Offline

#2 2006-02-25 11:39:31

Vitor M. Costa
Member
From: Portugal - Vila Real
Registered: 2006-01-22
Posts: 14
Website

Re: swap from the default form?

Hum, i think that you can Override your default form in Content » Write » Advanced Options and then you choose the form you want from there.

From the help:

“Override Default Form

If on occasion you wish for an article to use a form different from that assigned by default – for example if you want to show only an article excerpt with <code><txp:excerpt /></code> where you normally show the entire article with <code><txp:body /></code> – this can be set here.”

Last edited by Vitor M. Costa (2006-02-25 11:41:50)

Offline

#3 2006-02-25 11:55:23

elduderino
Member
From: Whitstable. south-East England
Registered: 2006-01-02
Posts: 175
Website

Re: swap from the default form?

ah brilliant! Sorry i didnt spot that at all. I thought the option would have to be set in the forms section. Thanks for your time!

Offline

Board footer

Powered by FluxBB