Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Display articles which use an overriding form
Hi, is there a simple way to display articles based on the use of the Override form feature or is it another job for etc_query
?
Edit: I’ll use a custom field otherwise… yeah… could be simple.
Last edited by NicolasGraph (2015-09-13 14:25:53)
Offline
#2 2015-09-13 13:45:43
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,303
Re: Display articles which use an overriding form
NicolasGraph wrote #294765:
display articles based on the use of the Override form feature
Do you mean “Show only articles that have no blank entry in their override form menu in Content > Write”?
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Offline
#4 2015-09-13 13:51:28
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,303
Re: Display articles which use an overriding form
You could try …
<txp:if_custom_field name="override_form" value="">
Field is empty
<txp:else />
Override form in action
</txp:if_custom_field>
… or some magic with custom_field
and if_variable
.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: Display articles which use an overriding form
uli wrote #294770:
You could try …
<txp:if_custom_field name="override_form" value="">...
… or some magic with
custom_field
andif_variable
.
override_form
is a custom field?! Oh yes… I should think about that as I also used <txp:custom_field name="article_image" />
sometimes…
Thank you to wake me up Uli!
Offline
#6 2015-09-13 14:23:12
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,303
Re: Display articles which use an overriding form
Glad it works (oops, does it?), but I’m sure I only filled an interim gap until Oleg finds this here :)
Last edited by uli (2015-09-13 14:23:25)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: Display articles which use an overriding form
If override_form
is a custom field, this should work: <txp:article limit="1" wraptag="div" class="article" override_form="article_video" />
isn’t it? Unfortunatly override_form
is not accepted as an article
attribute…
Last edited by NicolasGraph (2015-09-13 14:31:38)
Offline
Offline
Offline
Re: Display articles which use an overriding form
etc wrote #294783:
You guys are sweeping the dirt under the carpet, and you know it. :)
Under the carpet?
Ok… What do you think about that Oleg?
<txp:etc_query data="override_form LIKE '%my_form%'" markup="db" populate="article">
<txp:excerpt />
</txp:etc_query>
Better?…
You are right, it was not so hard to find… :)
Last edited by NicolasGraph (2015-09-18 17:33:31)
Offline
Offline