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

Forums / General Discussions / display event details based on event

display event details based on event

3 posts, 0 answered
  1. NuToSitefinity
    NuToSitefinity avatar
    140 posts
    Registered:
    01 Sep 2010
    11 Apr 2011
    Link to this post
    I've been searching the forums and so far no luck. I need to create 4 different layouts of the event detail page, meaning I need to show different information on that page based on the event that it is. Is it possible to either have 4 seperate event details templates and if so, to call the correct template based on the event?

    example:
    for car shows, i need to show start date, location, and a link to the regstration page
    big rig shows, I need to show start date, end date, venue and state information
    boat shows, start date, end end date, marina, map


    is there anyway to accomplish this?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    11 Apr 2011
    Link to this post
    Hi,

    You should create a custom control that inherits from EventsView and override SingleItemTemplatePath where with an conditional statement you can set different template.

    Greetings,
    Ivan Dimitrov
    the Telerik team

  3. NuToSitefinity
    NuToSitefinity avatar
    140 posts
    Registered:
    01 Sep 2010
    11 Apr 2011
    Link to this post
    I was thinking of going down that road since 90% of the site is custom, figure stay with the theme. :)


    what would be the best way to override the SingleItemTemplatePath? 
Register for webinar
3 posts, 0 answered