Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
make some article in a list special / was allowoverride problem
I started a new post for this because my last one was confusing.
I’m creating a site with a lot of listings. Some are free and some are paid. The free ones just have a title and excerpt. The paid ones have a title and excerpt in the listings as well but the title is a permalink that to the a article. see the beta example here:
http://www.seachtweekly.com/takeaway/
Notice the listing “nite star” it’s a paid add. But if I use allowoveride it will apply the same form in the list as in the article so it won’t help me. The only thing that i can think of is using a custom field to have a read more permalink at the bottom of the paid articles or to create a permalink around the title of the of the article for the paid ones but that seems like a messy solution… still not sure about the best way to go about this….
is there a plug in that would help me with this?
any advice appreciated.
its a bad hen that wont scratch itself.
photogallery
Offline
Re: make some article in a list special / was allowoverride problem
Wait what I really need is an allowoverride for the list form…
Is there such a thing???
its a bad hen that wont scratch itself.
photogallery
Offline
Re: make some article in a list special / was allowoverride problem
I think that this new plugin will be of help.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: make some article in a list special / was allowoverride problem
What about doing some “if_individual_article” (or “if_article_list”) conditional magic inside your allowoverride form? So, you will be able to control how that form renders when in an article list and when in individual article.
Offline
Re: make some article in a list special / was allowoverride problem
colak I checked that plug in out. I don’t see how testing for the existence of a specific form would help me, if I understood it right(which I probably don’t :) ).
Maniqui I think if I did something inside the allowoverride like if article list allow the override if not don’t…that would work. That is a really good solution actually.
But what I’m trying now is this:
<txp:article listform=’<txp:custom_field name=“listform” />’ />
If that doesn’t do the trick that I will give your suggestion a go maniqui.
Sorry for confusing everyone with this.
edited for spelling
thanks for the help
Last edited by kvnmcwebn (2010-06-04 20:03:02)
its a bad hen that wont scratch itself.
photogallery
Offline
Re: make some article in a list special / was allowoverride problem
kvnmcwebn wrote:
But what I’m trying now is this:
<txp:article listform=’<txp:custom_field name=“listform” />’ />
Article tags can not be used outside article context. But you can do this:
<txp:article>
<txp:if_custom_field name="listform" value="foo">
<!--
Foo
-->
<txp:else />
<!--
Bar
-->
</txp:if_custom_field>
</txp:article>
Or inside your override form:
<txp:if_individual_article>
<!--
Foo
-->
<txp:else />
<!--
Bar
-->
</txp:if_individual_article>
Offline
Re: make some article in a list special / was allowoverride problem
inside override form….
<txp:if_individual_article>
<txp:body />
<txp:else />
<txp:excerpt />
</txp:if_individual_article>
beautiful gocom
its a bad hen that wont scratch itself.
photogallery
Offline