Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-08-01 00:09:34
- simbwoof
- New Member
- Registered: 2006-08-01
- Posts: 5
Using a custom field as an attribute
Hi,
I am using the vdh_flickr plugin, which is fantastic, but I want to to be able to display thumbnails for an article simply by putting the set number into a custom field. Ideally like this…
<code> <txp:vdh_flickr_thumbnails nsid=“76871213@N00” set=”<txp:custom_field name=“flickrSet” />” open=“window” random=“3” /> </code>Obvisouly, I can’t use a txp tag as an attribute, but I know this can be done with raw php. I wouldn’t have a clue where to start – could anyone help?
thanks
scott
Offline
#2 2006-08-01 00:14:39
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Using a custom field as an attribute
<txp:php>
echo vdh_flickr_thumbnails(array(
'nsid' => '76871213@N00',
'open' => 'window',
'random' => 3,
'set' => custom_field(array('name' => 'flickrSet'))
));
</txp:php>
:)
Offline
#3 2006-08-01 00:37:43
- simbwoof
- New Member
- Registered: 2006-08-01
- Posts: 5
Re: Using a custom field as an attribute
wow! Thank you! That worked great :-)
Offline
#4 2006-08-01 11:26:18
- Ace of Dubs
- Member

- Registered: 2006-04-17
- Posts: 446
Re: Using a custom field as an attribute
This seems to be a common request. I know I would love to be able to nest codes without touching PHP. Could this be handled by a plugin?
Offline
Pages: 1