Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-04-19 11:31:09

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

custom fields as subsequent article image fields

Hi,
What would be the cleanest way of using custom fields to insert images into an article through the article form. Basically using custom fields as another article image field.

———————————————————————————————————————
I’ve tried this in the article form:
<txp:image id=”<txp:custom_field name=“thumb” />” />

and also just putting in <txp:image id=“11”/> into the custom field then put <txp:custom_field name=“thumb” /> into the article form.
—————————————————————————————————————————-

Neither method has worked for me yet.
Any suggestions?
-best
kevin

Last edited by kvnmcwebn (2009-04-19 11:32:26)


its a bad hen that wont scratch itself.
photogallery

Offline

#2 2009-04-19 12:57:01

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: custom fields as subsequent article image fields

Kevin, your first example should work but you need single quotes around the custom_field tag so:-

<txp:image id='<txp:custom_field name="thumb" />' />

Last edited by thebombsite (2009-04-19 12:57:27)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#3 2009-04-20 11:52:16

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

Re: custom fields as subsequent article image fields

doh!


its a bad hen that wont scratch itself.
photogallery

Offline

Board footer

Powered by FluxBB