Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

How to change years number in DropDown?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
masihdindar
Smarty n00b


Joined: 14 Apr 2021
Posts: 2

PostPosted: Wed Apr 14, 2021 11:31 pm    Post subject: How to change years number in DropDown? Reply with quote

Hey,
I'm using Smarty for my project. By default it show 1905 to 2015 in DropDown element (HTML) in my website. So i need to change these numbers and customize it.
Just like showing dates from 1940 to 2021
Looked at project codes (php files) But didn't find anything to change this number.

Anyone can help me with this?
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Thu Apr 15, 2021 12:57 am    Post subject: Reply with quote

If nothing else helps, read the documentation.

https://www.smarty.net/docs/en/language.function.html.select.date.tpl
Back to top
View user's profile Send private message
masihdindar
Smarty n00b


Joined: 14 Apr 2021
Posts: 2

PostPosted: Thu Apr 15, 2021 1:49 pm    Post subject: Reply with quote

[quote="AnrDaemon"]If nothing else helps, read the documentation.

https://www.smarty.net/docs/en/language.function.html.select.date.tpl[/quote]

Thanks. But i read this page before.
Do you know how can i customize this year list and change numbers? I only want to change the range of years to show date between 1940 to 2021
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Sun Apr 18, 2021 8:58 am    Post subject: Reply with quote

No, you did not.

http://prntscr.com/11mnx2y
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP