Hello,
I can not get {relative_url} or {comment_url_title_auto_path} to work in a Relationship.
Please refer to this:
Here you can see that Brandon also states this appears to be a bug in EE.
Can you confirm?
Brad
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
January 17, 2011 8:32pm
Subscribe [3]#1 / Jan 17, 2011 8:32pm
Hello,
I can not get {relative_url} or {comment_url_title_auto_path} to work in a Relationship.
Please refer to this:
Here you can see that Brandon also states this appears to be a bug in EE.
Can you confirm?
Brad
#2 / Jan 18, 2011 3:50pm
What version and build of EE are you using? Where are you using this? A bit more of your code might be helpful.
#3 / Jan 18, 2011 4:48pm
This is what I have in there to make it work now:
{visitor_pages}
<li><a href="http://{exp:query">{title}</a></li>
{/visitor_pages}This is what wasn’t working:
{visitor_pages}
<li><a href="http://{comment_url_title_auto_path}">{title}</a></li>
{/visitor_pages}Auto path is showing me the http://www.site.com/url_title. It is ignoring my setting in the Channel Settings.
Brad
#4 / Jan 19, 2011 9:49am
Hi, Brad. Keeping Playa out of the equation..
I built a reverse relation ship
{exp:channel:entries channel="about"}
{relative_url}
{comment_url_title_auto_path}
{title}
{reverse_related_entries orderby="title"}
{if no_reverse_related_entries}
<h2>No Events for This Performer</h2>
<p> {/if}<br />
Reverse: {title}</p>
<p>{relative_url}</p>
<p>{comment_url_title_auto_path}</p>
<p>{/reverse_related_entries}<br />
<hr><br />
{/exp:channel:entries}This is the result when there is a reverse related entry;
ee213/index.php/about
<a href="http://localhost/ee213/index.php/news/comments/randell">http://localhost/ee213/index.php/news/comments/randell</a>
Randell
Reverse: Current Location
ee213/index.php/stuff
<a href="http://localhost/ee213/index.php/stuff/comments/current_location">http://localhost/ee213/index.php/stuff/comments/current_location</a>See the http://localhost/ee213/index.php/stuff/comments/current_location ? That’s the right link.
I’m not doing anything other than using a very vanilla EE2.1.3 install.
#5 / Jan 19, 2011 9:52am
Could you try “Related” and not “Reverse Related” since I am using “Related” and not Reverse?
If this is true then I will go back to Brandon with this…
Brad
#6 / Jan 20, 2011 8:30am
Sure..
{exp:channel:entries channel="test" limit="15"}
<h3>{title}</h3>
<p>{content}</p>
<p>{related_entries id="related"}<br /></p><h4>Related title: {title}</h4>
<p> {content}</p>
<p>{comment_url_title_auto_path}</p>
<p>{/related_entries}</p>
<p>Submitted on: {entry_date format='%M %d, %Y'}</p>
<p>{/exp:channel:entries}