Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-06-03 05:45:07

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

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

#2 2010-06-04 13:41:30

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

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

#3 2010-06-04 13:46:17

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,253
Website GitHub Mastodon Twitter

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

#4 2010-06-04 14:38:43

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

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.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#5 2010-06-04 20:01:36

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

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

#6 2010-06-04 20:33:36

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

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

#7 2010-06-04 20:51:48

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

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

Board footer

Powered by FluxBB