Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2011-02-24 12:20:23

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Display 5 most recent articles with same custom field value

husainhk wrote:

I have a similar need, but when I use the customfieldname attribute, I get the Textpattern’s notice that this attribute isn’t found!

Apologies if I’m misunderstanding, but you need to use the actual custom field name as the attribute. E.g.,

<txp:article_custom product="4" />

if you have a custom field named “product”. Check out the link suggested by Uli to make sure you’re using a valid custom field name.


Code is topiary

Offline

#17 2011-02-24 13:42:14

husainhk
Member
From: Dubai, UAE
Registered: 2007-08-12
Posts: 105
Website

Re: Display 5 most recent articles with same custom field value

I am trying to get this snippet work:

<txp:article_custom section=“something” customfieldname=“my_field” limit=“10” form=“some-form” />

When I load the page, I get: Textpattern Notice: Unknown tag attribute: customfieldname

:(

Offline

#18 2011-02-24 13:47:37

husainhk
Member
From: Dubai, UAE
Registered: 2007-08-12
Posts: 105
Website

Re: Display 5 most recent articles with same custom field value

Sorry guys, am laughing and am furious at my silliness!!

Should have used the actual custom field’s name as the attribute … whereas I was using ‘customfieldname’ literally :)

Offline

Board footer

Powered by FluxBB