I know the following code doesn’t work because global variable assignments are parsed before anything else in the template, thus it has no data from weblog:entries to assign. I got that.
BUT is there any way I can work around this? Any way to have a dynamic variable parsed after/within weblog tags?
This is in the header of a weblog entry template…
{exp:weblog:entries require_entry="yes" limit="1"}
{related_entries id="issue"}
{assign_variable:img_dir="http://data.blah.com/images/{what}"}
{/related_entries}
{/exp:weblog:entries}Then use img_dir through the rest of the template?