1

I have two structure listings channels called blog and articles. The content can relate between the two channels.

How can I get the correct page url inside the related content tag? Structure's {page_url} doesn't work.

This is the current code:

{exp:tagger:entries tag="{segment_2}" custom_fields="article_content" limit="10" paginate="bottom"}
<h3><a href="{site_url}articles/{tagger:entry_url_title}">{tagger:entry_title}</a></h3>
{/exp:tagger:entries}

Basically I want the articles part of the url to dynamically change to either articles or blog based on Structure's url hierarchy.

1

Try updating to EE 2.6.1, there was an EE bug with page_url: http://ellislab.com/expressionengine/user-guide/about/changelog.html#version-2-6-1

| improve this answer | |
  • Hi Travis, thanks for your reply. Should {page_url} work inside a {exp:tagger:entries} field anyway, even with the bug fix? Even on their docs example they have the first part of the URL hardcoded like above. I know you're not with DevDemon by the way! I can ask them if you're not sure. – Paul Redmond May 7 '13 at 14:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.