bernhard Posted February 10 Author Share Posted February 10 I just pushed an update to the DEV branch that I really believe should be part of the core: That means you can still edit all settings on the module config screen, but you can override any setting in config.php like this: <?php $config->rockmigrations = [ 'syncSnippets' => true, ]; My module now shows that changes in a nice and easy way (bubble 2) and it also comes with links to edit a setting directly (1), which will scroll to the field in question πΒ What do you think, would this be helpful for your modules as well? Should this be part of the core? 2 Link to comment Share on other sites More sharing options...
zoeck Posted February 10 Share Posted February 10 5 hours ago, bernhard said: I just pushed an update to the DEV branch that I really believe should be part of the core: The Image isnβt working πΒ 1 Link to comment Share on other sites More sharing options...
bernhard Posted February 10 Author Share Posted February 10 Thx! I've updated the link. It was working for me so I would have not realised! Github changed something with embedding images from issue comments πΒ 1 Link to comment Share on other sites More sharing options...
bernhard Posted February 11 Author Share Posted February 11 RockMigrations now has a feature to easily make sure to fire certain migrations only once: $rm->once( "2024-02-11: Simple demo of the new once() feature", function() { bd('I will be executed only once!'); } ); Extensive docs are already in place:Β https://github.com/baumrock/RockMigrations/tree/dev/docs/once 2 1 Link to comment Share on other sites More sharing options...
gebeer Posted February 26 Share Posted February 26 Hi @bernhard since you have a major version change, does v4.0.0 introduce any breaking changes? Link to comment Share on other sites More sharing options...
bernhard Posted February 26 Author Share Posted February 26 Hey @gebeer nothing dangerous πΒ Quote β BREAKING CHANGES remove ImageMurl tweak in favour of Latte Filter I don't think that anybody except me was using this, but it's a breaking change... Anybody not using it can safely update. Before: {$img->maxSize(500,500)->murl} After: {$img->maxSize(500,500)->webp->url|vurl} This adds a version-url string for cache busting which is especially great when changing image focus point as then often the image url does not change (its still ...500x500...) but the image should get reloaded by the browser. This simple latte filter ensures that and the old ->murl had problems with webp so I changed itΒ πΒ 2 Link to comment Share on other sites More sharing options...
bernhard Posted May 6 Author Share Posted May 6 From latest Rock Monthly newsletter: RockMigrations v4.3.0 New methodΒ ο»ΏhidePageFromTree() New config setting to disable magic methods (request by @netcarver)Β ο»Ώhttps://tinyurl.com/ykv9otsc Improved the "copy code" feature in the PWΒ ο»Ώbackend GUI Improved method renderTable() 1 Link to comment Share on other sites More sharing options...
netcarver Posted May 8 Share Posted May 8 Hi @bernhardΒ I just tried adding the following tweak to the tweaks/ directory, and am getting an error from RockMigrations when the admin reloads.Β If I remove my attempted tweak, everything works again.Β I think this is in RM, rather than the tweak file.Β Thanks for the module, BTW. PageListShowExtras.php Link to comment Share on other sites More sharing options...
netcarver Posted May 8 Share Posted May 8 Ah, this is user error - ignore my post above. :) 1 Link to comment Share on other sites More sharing options...
bernhard Posted May 8 Author Share Posted May 8 Great! Are you porting a feature from AOS to RM Tweaks? πΒ Link to comment Share on other sites More sharing options...
netcarver Posted May 8 Share Posted May 8 Yes, that's right. I use maybe 5 or so features from AoS and figured porting those over would be a good way to learn both how AoS does it, and how your tweaks work. I'll add as PRs, with attribution to tpr, as I go. Updated to add: First four tweaks from AoS done and in as a pull request. Show extra actions by default. Show template name as a link to the template edit page. "Bypass trash" adds the Delete button to the page action list and also allows permanent deletion from the delete tab when editing pages. Prev/Next page edit links. 3 Link to comment Share on other sites More sharing options...
netcarver Posted May 8 Share Posted May 8 All we need now is a community library of tweaks and macros. Perhaps it could be called "The Rock Pool" :) 2 Link to comment Share on other sites More sharing options...
Ivan Gretsky Posted May 9 Share Posted May 9 I really like the idea with a tweaks pluggable collection. But I would prefer its usage was separated from the RockMigration module, so one could use tweaks without the more developer-centricΒ migration tool. I thought that @bernhardstarted a dedicated module for that, but not sure if it is still alive. 5 Link to comment Share on other sites More sharing options...
adrian Posted May 9 Share Posted May 9 8 hours ago, Ivan Gretsky said: I thought that @bernhardstarted a dedicated module for that, but not sure if it is still alive https://github.com/baumrock/RockAdminTweaks 3 Link to comment Share on other sites More sharing options...
Ivan Gretsky Posted May 10 Share Posted May 10 @bernhard, is that module not deprecated in favor of migrations tweaks? If not, shouldn't we be encouraged to develop the Tweaks module instead? Does it have its own support thread? Β 2 Link to comment Share on other sites More sharing options...
netcarver Posted May 10 Share Posted May 10 The RockAdminTweaks repo says... Quote ... you can place your own tweaks in /site/assets/RockAdminTweaks and they will automatically be included and handled by RATs. Does RockMigrations have the same tweak loading ability from the assets directory? Link to comment Share on other sites More sharing options...
gebeer Posted May 10 Share Posted May 10 19 hours ago, Ivan Gretsky said: I really like the idea with a tweaks pluggable collection. But I would prefer its usage was separated from the RockMigration module, so one could use tweaks without the more developer-centricΒ migration tool. I thought that @bernhardstarted a dedicated module for that, but not sure if it is still alive. I totally support this. Since the tweaks part of RM can be expected to grow, I also think it would be better to have this in a separate module. RM really should be what it states: the ultimate automation and deployment tool. This is where it shines. I'd be sad to see it become bloated with functionality not related to that. Just my honest opinion. 5 Link to comment Share on other sites More sharing options...
gebeer Posted May 10 Share Posted May 10 38 minutes ago, netcarver said: Does RockMigrations have the same tweak loading ability from the assets directory? Not yet, I guess, based on the loadTweaks method. 1 Link to comment Share on other sites More sharing options...
netcarver Posted May 10 Share Posted May 10 I was unaware of RockAdminTweaks and have now installed it alongside RockMigrations. Porting the tweaks over is very simple (just a change to the namespace in the tweak file) and I prefer having them in the assets folder as well. 2 Link to comment Share on other sites More sharing options...
netcarver Posted May 10 Share Posted May 10 Here's my first attempt at a public repo for Rock Admin Tweaks. Has the AdminOnSteroids tweaks from above, and my QuickWebAuthnLogin already ported over from RockMigrations. 5 Link to comment Share on other sites More sharing options...
bernhard Posted May 12 Author Share Posted May 12 Hey guys, please check out the new version of RockAdminTweaks which now even has a forum thread πΒ Would be great to get some PRs with tweaks! @netcarverΒ I decided to rewrite the module because I didn't like some aspects of the old one. @Ivan GretskyΒ I've just added those tweaks to RM because I was lazy and I did not get a single feedback on that RockAdminTweaks at all. But I agree that tweaks have nothing to do with RM, so I'm fine with moving them away from RM into a dedicated module. Do you have time to help with that? 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now