I want to show a list of my events. I want to show their Title, Start Date/End Date, Registration link and Registration Status (status can be Open, Coming Soon, Closed and Sold Out).
I am using a different AMS system to generate and manage my registrations, I just want to embed a link in my event pages in Sitefinity. In order to do so, I created a new 'Custom Field' for embedding my Registration Link and also created another 'Custom Field' for my event Status. Everything is working fine expect one thing. I want the Registration Status to be hyperlinked if the Status is 'Open', in other words: IF the 'Custom Field' for URL has a value, then hyperlink the value (link) to Status (Open) and if the custom field is empty and other statuses are selected, then only show the status (Coming Soon, Sold Out, Closed) with no hyperlink of course.
This is the code I am using in my Widget Template:
Is there any way to turn the href value on or off bases on the existence of the URL?