I have a custom module called Business with the fields:
From the Business list view widget I want to change the link to be a specific URL like:
/UrlOfRelatedCommittee/UrlOfBusinessItem
Another example: /committee-a/business-topic-a
I'm using Sitefinity 12.1 and MVC.
I've managed to get the URL of the related committee using @item.Fields.RelatedCommittee.DefaultUrl in a Widget Template. I just don't know how to get the URL of the Business item without it being the full URL (I just need the "business-topic-a") part.
Or maybe there's a better way to do this altogether. Thank you.
Can you explain a little further what you are trying to accomplish, not sure we have the full picture here. What is the need for getting the base URL of the 'Business'?