Most probably I’m overlooking something very obvious, but being a newbie ...
Everytime I’m trying to change a document in the manager (edit resource) I see this message:
"Document is linked to site_start variable and cannot have publish or unpublish dates set!"
Why?
Any toughts?
thx
Thomas
-
MODX Staff
- 10,725 Posts
As the message states, you have a Resource that is set as site_start in System Settings and you are attempting to set a date on which the Resource will be published or unpublished automatically. Since your site_start must always be published and accessible to anonymous visitors, you are not allowed to set these future publish/unpublish dates on this Resource.
-
☆ A M B ☆
- 24,524 Posts
I suspect that something is automatically inserting a publish date in that field, then when you try to save it the error is triggered. Try clearing the field, then save the document.
-
☆ A M B ☆
- 24,524 Posts
Ah, yes, that would do it... I always immediately remove that from a new installation, since it seems to cause a number of problems. Perhaps there is some way of only installing that chunk if the demo content button is on? Or maybe that rule can be modified to omit the site_start document?
Thanks
### extract ###
// For everyone
mm_default(’pub_date’);
mm_renameField(’introtext’,’Summary’);
do I comment ’pub_date’ out or not? (that chink is under "Demo Content" is that OK?!