Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2021-08-11 14:12:24

etc
Developer
Registered: 2010-11-11
Posts: 5,157
Website GitHub

Re: [RFC] Calendars support?

gaekwad wrote #331290:

Now added as a recommended module in Textpattern system requirements

Good idea, thanks!

Offline

#26 2021-08-12 07:06:18

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,162
Website

Re: [RFC] Calendars support?

Oleg, you latest changes to date (using IntlDateFormatter::LONG) look good.


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#27 2021-08-12 08:37:39

etc
Developer
Registered: 2010-11-11
Posts: 5,157
Website GitHub

Re: [RFC] Calendars support?

Thanks. Custom formats should be possible now. Users opinion is needed re UI and the default formats list (which looks too long for me).

Offline

#28 2021-08-13 01:08:22

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,162
Website

Re: [RFC] Calendars support?

etc wrote #331312:

Thanks. Custom formats should be possible now. Users opinion is needed re UI and the default formats list (which looks too long for me).

  1. definitely agree on the need to prune that list – as it is, I nearly always end up customising the <txp:posted /> and <txp:modified />@ format. Not sure what to recommend, though. The since format is a keeper I think, others dunno yet?
  2. is customising the format fully reflected in the <select /> ? If I put %x, I get Aug 13, 10.01 am in that pop up, I would expect 13 August 2021 (PHP docs, and Public side outputs that).
  3. I need to thing a little about the UI.

Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#29 2021-08-13 08:04:50

etc
Developer
Registered: 2010-11-11
Posts: 5,157
Website GitHub

Re: [RFC] Calendars support?

phiw13 wrote #331318:

The since format is a keeper I think, others dunno yet?

Sure, plus 3-4 formats containing main % patterns, for illustration.

If I put %x, I get Aug 13, 10.01 am in that pop up, I would expect 13 August 2021 (PHP docs, and Public side outputs that).

You need to save prefs before a format gets updated by PHP. Doing it in JS would be not reliable, and sending an AJAX request on each key stroke is too expensive.

Also note that formats are displayed in the user’s language, that can be different from the site language.

Offline

#30 2021-08-13 08:31:42

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,162
Website

Re: [RFC] Calendars support?

etc wrote #331320:

You need to save prefs before a format gets updated by PHP. Doing it in JS would be not reliable, and sending an AJAX request on each key stroke is too expensive.

Sure, saving I did, and left the tab, and closed the browser window since this AM. Look (screen grab)

(and it is all en-gb)


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#31 2021-08-13 08:48:20

etc
Developer
Registered: 2010-11-11
Posts: 5,157
Website GitHub

Re: [RFC] Calendars support?

Funny. Duplicate date outputs are suppressed, even when they are generated by different formats. Will fix Should be fixed, thanks!

Offline

#32 2021-08-13 10:11:25

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,162
Website

Re: [RFC] Calendars support?

Looks better now !

–^–

A question – some of the pre-filled/suggested date formats have %Oe for “day”. what does the O mean here? Suppressing white-space ?


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#33 2021-08-16 04:51:59

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,162
Website

Re: [RFC] Calendars support?

etc wrote #331320:

Sure, plus 3-4 formats containing main % patterns, for illustration.

since already mentioned, plus a shorthand format such as x (date) or c (date and time). These seem to localise well. And then one more custom configuration as illustration.

UI wise, the input=text input needs at least an aria-label for accessibility and clarity. A real HTML <label for="" /> might be ideal, but then, space/clutter/… and maybe one of the “size” classes (.input-medium) although I leave that to Mr Wareham.


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#34 2021-08-16 09:13:02

etc
Developer
Registered: 2010-11-11
Posts: 5,157
Website GitHub

Re: [RFC] Calendars support?

phiw13 wrote #331351:

I leave that to Mr Wareham.

+1

Offline

Board footer

Powered by FluxBB