Announcement Date DatePicker Range

This topic is: resolved

Tagged: 

This topic contains 2 replies, has 3 voices, and was last updated by  Fabrizio 6 years, 11 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #7072

    kevinbrooks
    Participant

    Is there a way to adjust the DatePicker when creating a new announcement to go back further than 10 years?

    #7588

    Evan Herman
    Keymaster
    Post count: 568

    Hi Kevin,

    Sorry for the delay in responses. Yes, if you select the earliest date (example: 1996) and then re-open the date drop down, you’ll see that it will have jumped back an additional 10 years. You can do this as many times as needed, or as a quicker work around – enter the date manually – eg: 04/08/1996

    Evan

    #14223

    Fabrizio
    Participant
    Post count: 8

    I struggle with the same issue and I found out a possible solution editing the file

    timeline-express-pro/lib/admin/CMB2/includes/CMB2_JS.php

    adding this row to
    $l10n = array => ‘defaults’ => ‘date_picker’

    like this:

    ‘defaults’ => array(
    ‘color_picker’ => false,
    ‘date_picker’ => array(
    ‘changeMonth’ => true,
    ‘changeYear’ => true,
    ‘yearRange’ => “-21:+10”,
    ….

    Hope it helps.

    • This reply was modified 6 years, 11 months ago by  Fabrizio.
    • This reply was modified 6 years, 11 months ago by  Fabrizio.
Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.