Sitemap shows articles published in the future or past

Description

Steps to reproduce

  • Add an article and publish it in the future or past (but active in the workflow)

  • The article will be in the sitemap, but it should not

Technical tasks

Code is in:

  • src/Bundle/SitemapBundle/Controller/NewsController.php

  • src/Bundle/SitemapBundle/Controller/DefaultController.php

There has to be a check on publishTime.startDate which should not be published in the future. See the comment from Marijn

Deployment actions

None

Activity

Show:
Marijn Otte
June 25, 2018, 6:57 AM

just some example code about how tot query the publication date

API
July 5, 2018, 11:15 AM

.Schatting van 4 - 5 uur is geaccepteerd door Integrated Marijn (in opdracht ingevoerd door ).

Koen Prins
July 6, 2018, 10:15 AM

Je kunt hem mergen

Marijn Otte
July 9, 2018, 6:56 PM

NewsController:

What if the startDate is tomorrow? A ">field('publishTime.startDate')>lte($now)" still need to be added

API
July 12, 2018, 1:33 PM

.Notificatie preview gestuurd naar Integrated Marijn (marijn@e-active.nl)

Assignee

Unassigned

External issue ID

None

Client

Integrated Marijn

Min. hours

4

Dev hour estimate

2

Epic Link

Sprint

None

Fix versions

Configure