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}?

1 Answer 1

4

It needs to be:

{destination.first().slug}

Or if this is for Craft 3:

{destination.one().slug}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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