Recently I wanted to display the current date in a Views block, so that a visitor looking at the block at the 5th of July would read something like "July 5, 2018".
The use case is an academic online article with a block indicating "how to cite" that article. Here's a real world example (see the "view date" at the end):
How to cite Mani, Inderjeet: "Computational Narratology". In: Hühn, Peter et al. (eds.): the living handbook of narratology. Hamburg: Hamburg University. URL = http://www.lhn.uni-hamburg.de/article/computational-narratology [view date: 5 Jul 2018].
I was surprised to not find a 'current date' field in Views but hoped then to get the current date with a token like [current-date:medium]
in the "Global: custom text" field, but that's not the case: the custom text field doesn't support tokens.
So, I suggest to support general (e.g. 'Current date' and 'Site information') tokens in the Views "Global: custom text" field. I'm sure they would be helpful in various use cases, not only the one described above.
I think it's important to provide such values via the Views UI. Particularly because (afaik) there is no Views PHP module (and probably won't be) for Backdrop. Other implementations (like a custom Views field template) have several disadvantages, for instance the need to localize dates in PHP on non English sites even if dates have already been localized in Backdrop.
Recent comments
Welcome to Backdrop! For your setup, you’ll want to create a subtheme of Bootstrap5 Lite itself; the Bootswatch styles (like Cerulean) are just presets that B5 Lite loads, and you can “lock in”...
Basic Theme designing questions, using Bootstrap5 Lite
Hi Rob, Welcome to Backdrop! Here’s a quick overview: Subtheming Bootswatch: You should create your subtheme based on Bootstrap5 Lite, not directly on a Bootswatch style....
Basic Theme designing questions, using Bootstrap5 Lite
Hi Rolf, This happens because CKEditor saves absolute or semi-absolute paths in the HTML instead of using Backdrop’s file stream wrappers (like public://). When you move your site...
Losing link to embedded pictures when moving my installation