1

I have a channel with an entry type which has a simple dropdown for {region} and an entries fieldtype which links to a channel of destinations.

I'd like the URL format for the channel to be /region/destination/slug. If I do /{region}/{destination.url}/{slug} the output is /region-name//entry-slug, i.e. nothing is output for the destination.

What should I have where I currently have {destination.url}?

4

It needs to be:

{destination.first().slug}

Or if this is for Craft 3:

{destination.one().slug}
|improve this answer|||||

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.