I am using nested tags, and wish to use a tag value returned by the initial tag pair, as a parameter value to pass to the nested tag pair. I’ve included the code below - this uses a plugin, but that is irrelevant I believe, since all I’m concerned about is how to use the tag value.
{exp:rentpro:get_property id='{segment_3}'}
<div><strong>{address1}</strong> - {town} {property_id}</div>
{exp:rentpro:get_property_images id="{property_id}"}
{image_name}<br>
{/exp:rentpro:get_property_images}
{/exp:rentpro:get_property}
The first line containing the {address1}, {town} and {property_id} tags works/displays fine, so the plugin is returning the correct data - it’s just using this in the subsequent get_property_images call that doesn’t work.
This syntax seems to work if I use a “native” EE tag, e.g. {segment_3} (which will work in this instance), but not if I use a “custom” tag name, e.g. {property_id}
It also works ok if I simply supply the ID value explicitly, eg. id=“123”.
But it doesn’t pick up the value from the {property_id} tag.
This is similar to a snippet from the EE user documentation at http://expressionengine.com/public_beta/docs/development/module_tutorial.html
{exp:channel:entries limit="10"}
{title}
{exp:download:entries entry_id="{entry_id}"}
{file_title} - {file_download}
{/download:entries}
{/exp:channel:entries}I would have thought this was a common enough occurence?
Thanks,
Diarmid