Whee! OK- I’m starting to fade, but let’s see if we can kill it off by getting it dynamic. PHP parsing turned on, parsed on output.
Before the weblog tag that shows your content, put
Wherever. We just want to be sure the variable is defined, even if the weblog tag ends up pulling back nada. Inside the tag, use the related entries tag to get the url_title of the parent. Or the child. Whatever- I still get confused on that one.
{exp:weblog:entries stuff…}
More stuff
{related_entries id="field_name"}
<?php $url='{url_title}'; ?>
{/related_entries}
{/exp:weblog:entries}
Basically- just add in the related_entries tag- define the php variable inside there. Be sure the id is correct- unlike the reverse related, that’s required for this variable pair.
Then- just echo it out as your embed variable value:
{embed="sidebars/nav_project" related="<?php echo $url; ?>"}
Er- be sure the embed variable name is still correct. But anyhoo- that’s how we’re shooting for making it dynamic. Untested- but I think it should work.