I have a relationship field which allows the editor to choose entries from different channels (channels about
& news
), and a few channels I have set up for Pages (with a Page URI). How can I make the template generate an appropriate URL for each entry? That is: how can I get it to link to /about/{url_title}
for an about sub-page, /news/{url_title}
for a news entry, and {pages_uri}
for a page?
I think I can probably create a switchee scheme to create the link programmatically on the template depending on the case, but I wonder if there’s an EE tag for this.