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

Forums / Developing with Sitefinity / How can I get another Publication_Date on Events page?

How can I get another Publication_Date on Events page?

2 posts, 0 answered
  1. Mark
    Mark avatar
    86 posts
    Registered:
    08 Feb 2010
    10 Apr 2011
    Link to this post
    Hi

    I need to have 2 seperate dates on the events page
    \Sitefinity\ControlTemplates\Events\ContentViewItemView.ascx

    One will be

    <

     

     

    telerik:DateTimeLiteral runat="server" ID="Publication_Date" DateFormatString="dd">

     



    and the other will be

    <

     

     

    telerik:DateTimeLiteral runat="server" ID="Publication_Date" DateFormatString="mm">

    Obviously the same ID cannot be used twice, so what is the best way to get this information?

    Thanks

     

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    11 Apr 2011
    Link to this post
    Hi Markus,

    Create a new metakey in the web.config and set the id of the DateTimeLiteral as the name of the metakey.

    Best wishes,
    Ivan Dimitrov
    the Telerik team

2 posts, 0 answered