Giter Club home page Giter Club logo

stagecoach's Introduction

StageCoach Extra for MODX Revolution

Author: Bob Ray Bob's Guides

Contributors: Michael Snow SnowCreative

Documentation: StageCoach Docs

Bugs and requests: StageCoach Issues

Questions about using StageCoach MODX Forums

StageCoach allows you to stage changed resources for future update. You can work on updates to the staged resource without affecting the current resource. The changes will be made at the date and time you select.

Thanks to MODX users Michael Snow, Garry Nutting, Mat Dave Jones, and smg6511v2, who contributed ideas, code, and testing.

stagecoach's People

Contributors

bobray avatar matdave avatar

Watchers

 avatar  avatar

Forkers

enminc matdave

stagecoach's Issues

javascript error for unstaged resources

The regClientStartupHTMLBlock call at

does not check whether the StageCoach's TVs are bound (available) to the current resource or not.

Therefore Javascript code:

var stageDateTv = document.getElementById("tv' . $stageDateTvId . '").value;
var stagedResourceTv = document.getElementById("tv' . $stagedResourceTvId . '").value;

cause js-errors in MODX manager for not staged resources, because the 'value' is requested from 'undefined'.

Quick fix is to check the existence of the DOM elements tv{$stageDateTvId} and tv{$stagedResourceTvId}.

var getStageDateTv = document.getElementById("tv' . $stageDateTvId . '");
var getstagedResourceTv = document.getElementById("tv' . $stagedResourceTvId . '");
var stageDateTv, stagedResourceTv;
if (getStageDateTv && getstagedResourceTv) {
    stageDateTv = getStageDateTv.value;
    stagedResourceTv = getstagedResourceTv.value;
}

Not working in multi-context site

I was hoping I could get this working in a multi-context site by changing the context specific settings for "stagecoach_resource_id" and "stagecoach_archive_id". Unfortunately it completely breaks down.

When staging a resources outside of the "web" context (which houses the default Staged Resources container), the new resource uses the default container as a parent, but is strangely not visible from the site tree. I have to use the search tool to find the staged ID.

The archiving and updating works fine. It is just the initial staged resources that glitch out.

Missing Buttons

as of update 1.5.0-pl I'm not seeing the added Resource > Staged or Staged > Resource buttons

StageCoach doesn't work in collections

Tried to set a staged document within a collection. The document will be created 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 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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.