i am trying to set the url format for some entries to include the category slugs set for it within a category entry field - i can get the first one like this
{eventCategory.one().slug}/{slug}
but cannot figure out how to get the second one (the 2nd one is optional and is a sub-cat of category1 also so not sure how to do some optional logic for it within the 'Entry URI Format')
so the url could be category1/slug OR category1/catgeory2/slug
Any ideas anyone? Thanks