Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Override form and list vs. individual articles
So here’s my textpattern site, and I’m having a problem with sections/forms. I have one section (ticker) where I put links/quotes/photos, each kind of item having its own form. Everything looks fine on the home and section pages, but once you get to the individual article page, the override form is lost.
The code that shows the articles on the ticker pages is <txp:article limit="25" form="ticker" />, with form set but not listform. If I don’t set the form, all the articles show up with the default form, not their override forms.
How do I get the override forms to hold on the individual archive pages? I’ve tried <txp:article limit="25" form="ticker" allowoverride="1" />, but that doesn’t affect individual articles(^).
Offline
#2 2006-08-26 05:06:25
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Override form and list vs. individual articles
…but that doesn’t affect individual articles…
allowoverride is set to 1 by default, so setting it to 1 wouldn’t make a difference. The wiki page refers to the fact that allowoveride = "0" will only work for article lists, whereas individual articles would/should always use the override form.
You are running the latest stable version of Textpattern (4.0.3) correct? Would you please post a tag trace of an individual page where this is not working?
Offline
Re: Override form and list vs. individual articles
Here’s the tag trace in all its glory, if you want to have a look. It’s reassuring to see that the individual articles should always use the override form, but I can’t see where I’m telling them not too.
When the tag trace gets to parsing the txp:article tag, here’s what it looks like, it’s definitely not using the override form.
<pre><code>
<txp:article limit=“25” form=“ticker” >
[SQL (0.000081): select Form from txp_form where name=‘ticker’]
[Form: ticker]
</code></pre>
It doesn’t work if I don’t explicitly tell it what form to use: <txp:article limit="25" /> – this makes all the articles use the default form, not their override forms. So as far as I can tell, the override form is completely ignored in the individual article view.
Offline
#4 2006-08-27 03:42:47
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Override form and list vs. individual articles
Hmm. Okay, so let’s take your article, William James, and walk through it step by step, make sure nothing has been overlooked.
The article’s override form (as specified in the “write” tab) is <notextile>___</notextile>. On the home and section pages, you’re calling the article with the <notextile>___</notextile> form (passed to the article tag). Home and section pages display the article using the <notextile>___</notextile> form, and the individual article displays using the <notextile>___</notextile> form.
Offline
Re: Override form and list vs. individual articles
The article’s override form (as specified in the “write” tab) is quote. On the home and section pages, you’re calling the article with the ticker form (passed to the article tag). Home and section pages display the article using the quote form, and the individual article displays using the*ticker* form.
So it overrides right when the article is in a list, but not when it’s individual.
Offline