sulu / SuluArticleBundle

Bundle for managing localized content-rich entities like blog-posts in the Sulu content management system
MIT License
52 stars 77 forks source link

Add last modified date to settings tab #655

Closed martinlagler closed 3 weeks ago

martinlagler commented 6 months ago
Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Fixed tickets fixes #issuenum
Related issues/PRs https://github.com/sulu/sulu/pull/7238
License MIT

What's in this PR?

Add new updated date field to the settings tab, with a toggler to enable and disable it.

Why?

So articles can have a editable update date.

martinlagler commented 3 months ago

@wachterjohannes I added the lastModified to the sitemap in this PR as well (https://github.com/sulu/SuluArticleBundle/pull/655/commits/f0e99208c50166756ae7de78b72a2c4fd958fa32)

And i noticed that currently the date is not working on the sitemap, because the wrong paramter was set. I will also create a PR for 2.5

alexander-schranz commented 3 weeks ago

I added the bc layer so it still works for Sulu 2.4, 2.5 and 2.6 has this new feature then enabled.

See changes in: https://github.com/sulu/SuluArticleBundle/compare/4230b775c73d50afbead9ae6e38130e99eaa53df...fe5c43360d786156ff3828ec4ccae6659fec56c7