Гость
28 Авг 2013 23:15

Hi All.

I wish to use a multi-level select where people can choose a date.

The user may not know the exact date, so the dropdown will allow them to get as close as they can.

Something along the lines of:

1980's

--1981

--1982

--1983

---January

---February

----1

----2

----3

So a user could just choose 1980's, 3 February 1981, or anything in between.

I could upload a text file, but I would need to do this every day to add an extra date, has anyone any clever ideas as to how I would do this in some automated way?

Thankyou.

D.

Последние изменения: 02 Март 2014


Sackgesicht VIP
Total posts: 1,636
29 Авг 2013 03:42

Every single day has an entry there?

Anyway, if you just need to add every day a new entry, then a cronjob at midnight, adding the new day into the database, might be helpful for your problem.

The Multi Level Select field is organized based on the "Nested Set Model". See more info here


Sergey
Total posts: 13,748
30 Авг 2013 02:07

Field date has input template like that.


Гость
30 Авг 2013 09:22

Thanks Sergey, do you have a screenshot? (or try before buy??? ;-))


pepperstreet VIP
Total posts: 3,837
30 Авг 2013 10:53

Field date has input template like that.

Date field allows input of exact dates.

The task here is to allow "incomplete" or "vague" information. AFAIK, you can´t get this multiple variations and options with the "date & time" field. Though it is very versatile and powerful.


Sergey
Total posts: 13,748
01 Сен 2013 04:27

Thanks Sergey, do you have a screenshot? (or try before buy??? )

Try http://demo.mintjoomla.com . there is backend access, Add date field to any type.


Гость
01 Сен 2013 08:18

Thanks Sergy, though it's not what I need.

I think maybe the best way for me to do it is to have three dropdowns and then write some jquery in template to modify the contents of the dropdowns on the fly depending on what is selected.

Or at least I'll try, I'm not an expert! ;-)

Ta.

D.


pepperstreet VIP
Total posts: 3,837
01 Сен 2013 08:20

The task here is to allow "incomplete" or "vague" information. AFAIK, you can´t get this multiple variations and options with the "date & time" field. Though it is very versatile and powerful.

Date & Time field would only work with a smart validation or conditional display. Currently, it is not suitable for this particular case, IMHO. 1.) The field input should allow partial dates, and take it like they were entered... even allow blank day or month! The year could be required. 2.) The output should react on this partial info. If no day or month... skip it. Output format could be smart, too.

Работает на Cobalt