localgovdrupal / localgov

Installation profile for the LocalGov Drupal distribution.
GNU General Public License v2.0
82 stars 18 forks source link

Show published/ last updated dates on pages #734

Open willguv opened 3 months ago

willguv commented 3 months ago

PaulB raised this at Product Group and in Slack

Is there anything on the board about adding published/last updated dates to webpages? Is this feature already available?

Stephen:

It's easy enough to add this sort of functionality; just need to adjust the display options One thing we can do is make sure they display nicely when enabled

To do

willguv commented 3 months ago

Previously covered:

https://localgovdrupal.slack.com/archives/C020SJRQX2M/p1715595382053479 https://github.com/localgovdrupal/localgov_project/issues/160

markconroy commented 3 months ago

@willguv I've an updated PR for this here: https://github.com/localgovdrupal/localgov/pull/735

willguv commented 3 months ago

Nice one Mark, can you grab a couple of screenshots or let me know the composer command to install this?

markconroy commented 3 months ago

Here's a screenshot

Screenshot 2024-06-26 at 17 20 17

There's more details in the PR description: https://github.com/localgovdrupal/localgov/pull/735#issue-2375729488

willguv commented 3 months ago

Where does this appear please?

markconroy commented 3 months ago

It doesn't appear anywhere. It's a block but you'll need to decide where you want to place it yourself.

You can go to Admin > Structure > Blocks and place it in any region

andybroomfield commented 3 months ago

It will need to be optional as we don't know if council web teams have put sensitive or information they may not want to be public.

markconroy commented 3 months ago

@andybroomfield That's the handy thing about this being a block, councils can decide what pages/content types they want it on.

I guess we could create a custom field either that would be shown to the public listing updates and leave the revisions field for just internal use.