after a long absence, I have now resumed the development of GoodNews. For the upcoming release I will take care of the necessary adjustments for the current MODX versions. The deprecated code parts will be updated and issues that have been pending for some time will be fixed successively.
MODX 3 will also be a major topic!
Please stay tuned and watch this thread for further informations!
I was looking for something that appeared to do exactly what you’ve created. I’ve upgraded my site to MODX 3 and installed the extra via Package Management. Unfortunately it wouldn’t completely install and in the extras panel showed as Not Installed.
Problem was that my resource tree suddenly disappeared.
I removed the extra completely via the Package manager and even purged it but the issue still persists.
If I click on the Extra menu the GoodNews.desc icon comes still and the GoodNews directory is still in the Components directory even though it was supposed to be deleted.
The error I get is:
(ERROR @ /home/cyadmin/public_html/core/components/goodnews/model/goodnews/goodnewsresourcecontainer.class.php : 27) PHP warning: require_once(/home/cyadmin/public_html/core/model/modx/modprocessor.class.php): failed to open stream: No such file or directory
/home/cyadmin/public_html/core/components/goodnews/model/goodnews/goodnewsresourcecontainer.class.php exists but there is no such file as modprocessor.class.php in the core/model directory.
So I’m thinking that maybe in MODX 3 the modprocessor.class.php file has been moved/removed which could be the issue.
Thanks… I’ve tried doing this but the same problem remains. I’ve disabled in the Elements tab and I’ve checked the DB to ensure it’s been disabled but the Resource tree still doesn’t show and I can’t for the life of me remove all the Goodnews artefacts from the system, even if I try deleting manually via the Modx interface.
Not being able to see the resource tree is my major problem at the moment as the client can’t add or update anything
Any other suggestions?
EDIT: I’ve found a similar issue discussed here: Error while loading resource tree MODX 3 · Issue #335 · modxcms/Collections · GitHub but it appears to be fixed so I’m thinking the GoodNews plugin changed something fundamental when installed.
A new version of GoodNews 1.6.1-pl is now online and available via MODX extras provider!
The new version is still only built for MODX 2.3.x up to 2.8.x.
This release is the preparation for the further development of a MODX 3 compatible version. Since GoodNews is a comprehensive extra, further development for MODX 3 will be done in a separate version.
The existing MODX 2 compatible version will no longer receive feature updates. However, bug fixes and security patches will be included.
This allows easy switching in ProjectName between different branches. There’s a config.core.php in the root of ProjectName that I can switch between 2.x/3.x to identify which core to use. Both 2.x and 3.x point to the same code base in ProjectName.
While boring, if you’ll have an upgrade path from the 2.x to the 3.x version I’d suggest sticking with GoodNews 2. If an upgrade path isn’t possible then a rename makes sense. BetterNews would be a great name in that case!
I don’t have the “More”-prefix trademarked so wouldn’t be able to stop you from using that if I wanted to, and it’s also not something we use for all extras (just MoreGallery and the “more for modx” motto)… yeah that does could give the suggestion modmore is involved which would be nice to avoid.
This looks very reasonable Mark! Thanks for this hint!
Using your method, I can develop different project versions (one version for MODX 2 and one for MODX 3) in a single GitHub library by simply switching branches - which is what I need for GoodNews. Don’t even need to change config.core.php, as each branch can hold its own config.core - or do I miss something?