+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Hide event end date if its the same as the start date

Hide event end date if its the same as the start date

4 posts, 0 answered
  1. Andre
    Andre avatar
    10 posts
    Registered:
    29 Dec 2011
    03 Feb 2012
    Link to this post
    Hi,

    I need to hide the event end date if it's the same as the event start date. How would I do this?

    Could I just edit the ContentViewSingleItemView.ascx and add some conditional statements? If so, how would I do that?

    Thank you,
    Andre
  2. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    Registered:
    06 Dec 2016
    06 Feb 2012
    Link to this post
    Hello Andre,

    Like you properly pointed out you can edit the ContentViewSingleitemView template and add a code-behind or inline logic that will compare the values for EventStart and EventEnd. You can then map the external template globally by following the instructions we've provided in this blog post. Please do not hesitate to get back to us if you need some further clarifications or have any additional questions.

    Regards,
    Boyan Barnev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Andre
    Andre avatar
    10 posts
    Registered:
    29 Dec 2011
    07 Feb 2012
    Link to this post
    Hi Boyan,

    Thanks for your quick reply. Could you please show me an example of how I would enter the inline logic to accomplish this?

    Thank you!
  4. Andre
    Andre avatar
    10 posts
    Registered:
    29 Dec 2011
    09 Feb 2012
    Link to this post
    I got this issue resolved.

    Thank you
Register for webinar
4 posts, 0 answered