Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [RFC] Calendars support?
gaekwad wrote #331290:
Now added as a recommended module in Textpattern system requirements
Good idea, thanks!
Offline
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
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
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).
- 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. Thesince
format is a keeper I think, others dunno yet? - is customising the format fully reflected in the
<select />
? If I put%x
, I getAug 13, 10.01 am
in that pop up, I would expect13 August 2021
(PHP docs, and Public side outputs that). - 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
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 getAug 13, 10.01 am
in that pop up, I would expect13 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
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
Offline
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
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
Offline