Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-04-06 23:14:21

wspence
Member
Registered: 2006-09-03
Posts: 84

Different article form on front page

Have two different article forms. One that’s the default front page and the other is for articles. How do I override the form for articles when they appear on the front page?

(Edit: updated discussion topic. -Mary)

Last edited by Mary (2007-04-07 18:26:18)

Offline

#2 2007-04-06 23:21:14

wspence
Member
Registered: 2006-09-03
Posts: 84

Re: Different article form on front page

ok i have things working now, but this is still the question i have incase i happen to have two forms in an article.

Offline

#3 2007-04-06 23:21:28

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Different article form on front page

Try this for your default page (not sure if this is what you want):

<txp:if_article_list>
	<!--frontpage-->
	<txp:article form="myForm" />
<txp:else />
	<!--not frontpage-->
	<txp:article form="myOtherForm" />
	<!--or leave the form attribute off for the default form-->
</txp:if_article_list>

Offline

Board footer

Powered by FluxBB