Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-04-02 10:51:09

Fontanel
Member
Registered: 2006-02-08
Posts: 15
Website

Override form only on frontpage

Is it possible to use a different article form ónly on the frontpage, so it’s displayed as a listform? Because when I select a form from the override form-dropdown, it also changes the view on the single-article page.

Is there a way to solve this? A plugin maybe?

Offline

#2 2008-04-02 11:05:45

sthmtc
Member
From: CGN, GER
Registered: 2005-01-17
Posts: 586
Website

Re: Override form only on frontpage

allowoverride="0" manual

Offline

#3 2008-04-02 11:25:32

Fontanel
Member
Registered: 2006-02-08
Posts: 15
Website

Re: Override form only on frontpage

thanks for your reply, but that prevents from using a different form on the frontpage, and displays the single article with the different form. But I want it the other way around.

Offline

#4 2008-04-02 11:45:41

sthmtc
Member
From: CGN, GER
Registered: 2005-01-17
Posts: 586
Website

Re: Override form only on frontpage

well maybe you shouldn’t use form overrides in the first place. are you aware of this (i’m not really sure how deep you’re into the concept of textpattern but what you want can easily be achieved in numerous ways, without plugins)

Offline

#5 2008-04-02 12:19:49

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Override form only on frontpage

Just define the form you want on your default page? If you share that page with other sections, then make use of if_section as well.

Offline

#6 2008-04-02 12:41:38

Fontanel
Member
Registered: 2006-02-08
Posts: 15
Website

Re: Override form only on frontpage

sthmtc wrote:

well maybe you shouldn’t use form overrides in the first place. are you aware of this (i’m not really sure how deep you’re into the concept of textpattern but what you want can easily be achieved in numerous ways, without plugins)

thanks, that should do the trick I guess

Offline

#7 2008-04-02 18:07:40

Fontanel
Member
Registered: 2006-02-08
Posts: 15
Website

Re: Override form only on frontpage

is it also possible to display the listform of one particular section differently than the other posts on the frontpage? So I can style posts from that section differentlty. And if so, can I also style them based on a category?

when I place on of the if_section or if_category tags in the default form, it only displays the code when your already in the /section instead of also displaying it on the frontpage.

Offline

#8 2008-04-02 19:40:53

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Override form only on frontpage

Use if_article_section and if_article_category in the article form.

Offline

Board footer

Powered by FluxBB