-
-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Publishing a page with the toggle visibility button doesn’t update the sitemap.xml #756
Comments
|
Hm, it definitely should: https://github.com/contao/news-bundle/blob/master/src/Resources/contao/dca/tl_news.php#L1034-L1037 |
|
Can we try to remove the |
|
You can try, but
|
|
Your link goes to |
|
You are right. The sitemap update is triggered in on of the onsubmit callbacks, however we are only executing the save callbacks of the field. @contao/developers Should we also execute the onsubmit callbacks or is it sufficient to simply add |
|
I agree that it might be a good idea to execute the onsubmit callbacks so that third party callbacks on |
|
running the onsubmit callback stack is out of context to me when changing one field via a different functionality. I would vote (if I could 😃 ) to just add the updateSitemap method to save callback of the field. |
|
@DanielSchwiperich I get your point. But the onsubmit callbacks would also run if you edited the record and only changed the one field, wouldn't it? |
|
To me, the onsubmit_callback should be triggered as well. |
|
yes leo, there's also no reasonable scenario coming to mind where this should not be ok. |
|
Fixed in a46f8ac. The changes worked in my test setup, still I encourage you to review them thoroughly. |
|
I’m not sure about the places with |
|
Do you remember why we have added |
|
OK, so if i understand it correctly, |
|
Yes, I think so. |
|
@leofeyer I know this issue was already closed, but running |
If you publish a page with the publish/unpublish button the sitemap.xml does not get rewritten. I think this can be fixed by calling
$this->updateSitemap()in thetl_page::toggleVisibility()method.The text was updated successfully, but these errors were encountered: