-
- 24,544 Posts
I haven't looked at StageCoach for quite a while, but you should never set the Staged Resource ID value (or any ID).
On the TV tab of the original resource, just set the date and time in the "Stage Date" TV and save the Resource. The date needs to be in the future, because the plugin will only operate when there's a new visit to the front end and the date has passed.
If your updates involve TV values (for other TVs, not the StageCoach TVs), be sure to set the stagecoach_include_tvs System Setting to Yes
Also, AFAIK, there can only be one update page for each live resource, so StageCoach might not work for you if you want to stage multiple updates.
-
- 670 Posts
Ah ok. I thought the idea was that if you entered an id then it would update That resource with the content, rather than updating itself.
I will have another play with it and see if it fits the bill.
Out of interest, what is the reason for the tv if it's not to be used?
Thanks
Andy
-
- 24,544 Posts
The Staged Resource ID TV is set automatically by StageCoach when you save the resource (and it creates the staged resource also at that point).
You might want to re-read this:
http://bobsguides.com/stagecoach-tutorial.html, especially this part:
To stage a Resource for later update, edit the Resource in the Manager, and on the "Template Variables" tab, select the "Stagecoach" section. Set the date and time in the "Stage Date" TV and save the Resource. Do *not* set the "Staged Resource ID" TV. It will be set automatically by StageCoach. Once StageCoach is working, you may want to create a Form Customization rule that hides the Staged Resource TV since there is no need to edit it manually.
When a Resource is saved with the Stage Date TV set, StageCoach will make a copy of it in the "Staged Resources" Folder. The update date will be appended to the pagetitle. This is the staged Resource. You can edit it as many times as you like before the Stage Date. When the original page is first visited after the Stage Date, StageCoach will updated it from the staged Resource and delete the staged Resource.
On second thought, I think it might be possible to create multiple updates for a single resource. Each time you save the resource with the Stage Date TV set, it should create a new staged resource that will be used to update the original on that date.
discuss.answer
-
- 24,544 Posts
I'm glad you got it sorted.
About your question -- this is from the
docs, which I encourage you to read
:
If you decide to change the Stage Date, just edit the Stage Date TV of the original Resource. StageCoach will rename the staged Resource to reflect the new date.
-
- 4 Posts
There might be an issue with StageCoach and collections. Tried to set a staged document within a collection. The document will be created (as a copy) but is hidden in the document tree. It can be found via search function by its id. But it doesn't appear in the Staged Resources folder and it doesn't change the original document at the defined time. Nothing happens.
With documents directly visible in the tree StageCoach works correctly but not with collection items.
What can I do?
Using MODX Revo 2.6.5-pl at provider one.com with PHP 7.2.14, MySQL 10.1.30-MariaDB-1~xenial
EDIT: tried at other provider (Hosteurope), same result. Simple documents are changing to staged content but collection items don't.
[ed. note: rasc52 last edited this post 5 years, 2 months ago.]
-
- 24,544 Posts