0
Welcome Guest! Login
0 items Join Now

SOLVED Date Format

  • SOLVED Date Format

    Posted 14 years 3 months ago
    • Is it possible to add another date format to gantry as follows:

      Day Date Month Year

      As there isn't a suitable one in the gantry framework already.

      Thanks
    • Last Edit: 14 years 3 months ago by Lime Media Design.
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: SOLVED Date Format

    Posted 14 years 3 months ago
  • Re: SOLVED Date Format

    Posted 14 years 3 months ago
    • Thanks, this worked perfectly
    • Hertak's Avatar
    • Hertak
    • Newbie
    • Posts: 13
    • Thanks: 10

    Re: SOLVED Date Format

    Posted 10 years 1 month ago
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: SOLVED Date Format

    Posted 10 years 1 month ago
    • I just quote the what I linked ...
      aha. I apologize. I forgot to include the templateDetails.xml modification
      It is fixed now. Here is what I did.
      changed thi section of the tempalteDetails.xml file:
                  <param name="date" type="chain" label="DATE" description="DATE_DESC">
                      <param name="enabled" type="toggle" default="0" label="SHOW" />
                      <param name="position" type="position" default="top-a" label="POSITION" />
                      <param name="clientside" type="toggle" default="0" label="DATE_CLIENTSIDE" />
                      <param name="formats" type="dateformats" default="%A, %B %d, %Y" label=" ">
                              <option value="%A, %B %d, %Y" />
                              <option value="%B %d, %Y" />
                              <option value="%d %h, %Y" />
                              <option value="%d %h, %y" />
                              <option value="%a, %h %d, %Y" />
                              <option value="%a, %h %d, %y" />
                          </param>
                     </param>
      in: template/rt_zephyr_j15/templateDetails.xml
      to this:
                  <param name="date" type="chain" label="DATE" description="DATE_DESC">
                      <param name="enabled" type="toggle" default="0" label="SHOW" />
                      <param name="position" type="position" default="top-a" label="POSITION" />
                      <param name="clientside" type="toggle" default="0" label="DATE_CLIENTSIDE" />
                      <param name="formats" type="dateformats" default="%d %B %Y, %A" label=" ">
                              <option value="%d %B %Y, %A" />
                              <option value="%A, %B %d, %Y" />
                              <option value="%B %d, %Y" />
                              <option value="%d %h, %Y" />
                              <option value="%d %h, %y" />
                              <option value="%a, %h %d, %Y" />
                              <option value="%a, %h %d, %y" />
                          </param>
                     </param>

      Gantry is free, but "Lime Media Design" had a valid membership when he asked his question.
      So I just linked that post ... it may be not 100% valid anymore but should give you enough information to solve the issue ...

      The topic is 4 years old and solved ... please open your own thread next time ...
    • Hertak's Avatar
    • Hertak
    • Newbie
    • Posts: 13
    • Thanks: 10

    Re: SOLVED Date Format

    Posted 10 years 1 month ago
    • Works perfect for me i add
      <option value="%A, %d de %B de %Y"/>

      and give the format that i
      need Domingo, 08 de Marzo de 2015 

      Thanks.
      I posted here because i can find a treed Many thanks Regards.

Time to create page: 0.054 seconds