Hi Matt,
Sure!
You would need a means to assign that to a variable to be used later in the template. As you can guess, the related entry’s {title} variable overrides the parent entry’s {title} variable.
Have a look at Stash - it allows for just this use of dynamic template variables.
Cheers,
{exp:channel:entries}
{title}
{related_entries id="band"}
// How can I get the parent entry's {title} here?
{title}
{/related_entries}
{/entries}Sadly, EE fails in this regard. I would use php within the the template to solve this problem. PHP parsing needs to be set on output. Not ideal, but gets the job done quickly. Maybe someday I will write an extension to help with this issue.
{exp:channel:entries}
<?php $title = '{title}'; ?>
{related_entries id="band"}
// How can I get the parent entry's {title} here?
<?php echo $title; ?>
{title}
{/related_entries}
{/entries}Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.