Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
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
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
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
Pages: 1