Forums

Skip Navigation LinksHome / Developer Network / Forums / Sitefinity Older Versions (3.x): 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

  • Andre avatar

    Posted on Feb 3, 2012 (permalink)

    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

    Reply

  • Boyan Barnev Boyan Barnev admin's avatar

    Posted on Feb 6, 2012 (permalink)

    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

    Reply

  • Andre avatar

    Posted on Feb 7, 2012 (permalink)

    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!

    Reply

  • Andre avatar

    Posted on Feb 9, 2012 (permalink)

    I got this issue resolved.

    Thank you

    Reply

  • Register for webinar
Skip Navigation LinksHome / Developer Network / Forums / Sitefinity Older Versions (3.x): Developing with Sitefinity > Hide event end date if its the same as the start date