Jump to content

bernhard

Members
  • Posts

    6,671
  • Joined

  • Last visited

  • Days Won

    366

Everything posted by bernhard

  1. Yeah I don't think it has anything to do with that setting. It's related to RockMigrations I guess. I'm already searching and just killed my current project by disabling autoload for RockMigrations. Not a good idea if you are using MagicPages because then nothing will be usable any more, no frontend, no backend ? I had to add this at the very top of index.php and then enable autoload back to normal: require_once __DIR__ . "/site/modules/RockMigrations/classes/MagicPage.php"; Maybe someone finds this info helpful some day ?
  2. Ok I can reproduce this so I'll have a look into this instantly! I'll be back ?
  3. Thx. This one I have seen myself so it looks I need to fix this. These things are always hard to find as you never know where they are coming from, so a report like this is helpful as it says that it's coming from RockPageBuilder and not another module. BUT. Could you please provide step-by-step what you are doing and when you are seeing it? Because it does not appear when I'm just editing the homepage and then try to leave! There must be more steps involved?
  4. ?? I'm not sure about this one. Often when working with RockMigrations REMOVING things is not enough. For example if you have set a "description" or a "notes" property of a field and then remove it, the value will still be in the DB. So you need to set it to an empty string to remove it. I don't think that "hideTitle" is stored in the DB though. So it should be fine to comment it out here. But what you can do is change it to "false" and try if that makes a difference.
  5. Thx for the report. I'm sure we'll be able to fix your problems! First of all it's weird what you experiencing. I've never seen this and I can't explain how that should even be possible. Have a look at what hideTitle does: /** * Hide title field if block has setting "hideTitle" */ public function hookHideTitleField(HookEvent $event) { $block = $event->process->getPage(); if (!$block instanceof Block) return; if (!$block->getInfo()->hideTitle) return; $event->return->remove('title'); } So for a quick test you could just add a "return" at the very top of this method in RockPageBuilder.module.php Let me know what happened ? Are you using RockMigrations or are you doing everything with the GUI?
  6. Hey @adrian or anybody else, could you please check if you also get an error when deleting templates from the admin tools? Deleting fields works properly. Ouch… Fatal Error: Uncaught TypeError: Fieldgroups::___delete(): Argument #1 ($item) must be of type Saveable, null given, called in wire/core/Wire.php on line 416 and defined in wire/core/Fieldgroups.php:312 #0 wire/core/Wire.php (416): Fieldgroups->___delete(NULL) #1 wire/core/WireHooks.php (968): Wire->_callMethod('___delete', Array) #2 wire/core/Wire.php (484): WireHooks->runHooks(Object(Fieldgroups), 'delete', Array) #3 site/modules/TracyDebugger/TracyDebugger.module.php(826): Wire->__call('delete', Array) #4 wire/core/ModulesLoader.php (168): TracyDebugger->init() #5 wire/core/ModulesLoader.php (100): ModulesLoader->initModule(Object(TracyDebugger)) #6 wire/core/Modules.php (338): ModulesLoader->triggerInit() #7 wire/core/ProcessWire.php (775): Modules->triggerInit() #8 wire/core/Wire.php (413): ProcessWire->___init() #9 wire/core/WireHooks.php (968): Wire->_callMethod('___init', Array) #10 wire/core/Wire.php (484): WireHooks->runHooks(Object(ProcessWire), 'init', Array) #11 wire/core/ProcessWire.php (909): Wire->__call('init', Array) #12 wire/core/ProcessWire.php (665): ProcessWire->__call('init', Array) #13 wire/core/ProcessWire.php (613): ProcessWire->setStatus(2) #14 wire/core/ProcessWire.php (315): ProcessWire->load(Object(Config)) #15 index.php (52): ProcessWire->__construct(Object(Config)) #16 {main} thrown (line 312 of wire/core/Fieldgroups.php) This error message was shown because: you are logged in as a Superuser. Error has been logged. Please let me know if you need more info to debug this or if that error is only on my end. Thx!
  7. Thx @Jonathan Lahijani that looks indeed interesting. It's the first library that I see that made me feel it could be a good replacement for UIkit. All the others felt like a step back imho, even though the utility classes are great for sure and make it super fast and fun to develop. I see two problems though: npm install ........ They also offer a CDN Version. Do you have any experience with it? Is that a viable option or is that tremendously huge? I guess they need to add all the css to those files which is obviously less performant than compiling only necessary classes. The thing is with a CMS or a PageBuilder you often don't know what you need upfront, so I really like to include UIkit once and forget it. No Building Tools for Others: You can't use the download files to create End Products meant for End Users to build their own projects using the download files or derived content. --> That's a pity. It would have been great to rebuild some components for RockPageBuilder... What are the reasons why you prefer it over UIkit?
  8. Hi @netcarver thx I've just tried and I can reproduce this. It's a little weird because the sortablejs demos work fine! I'll have to look into this. Thx for the report ?
  9. Create a script that does what you want (publish one page) Trigger that script once a day For (1) read https://processwire.com/docs/front-end/include/ and for (2) you can either use https://processwire.com/docs/more/lazy-cron/ or - the better solution - a regular unix cron if possible.
  10. To be honest I don't have time to check that on my end. But it sounds like something that could be easily checked with a demo-module on a fresh install of PW and if it's like you said here then I'd ping Ryan about the problem in the issues repository ? I guess there is either a reason or a bug ?
  11. Thx. Please check out v5.0.4 and mark this thread as solved ?
  12. I've recently started using https://marketplace.visualstudio.com/items?itemName=SergeLamikhov.aligntokens to align my code for better readability (especially when having lots of field constants or lots of hooks): Before After What I find nice is that it does not do that stuff automatically and it lets you decide which token to use for alignment. On top we align by "=" and in _init() we align by $this ?
  13. This is so great!! Thx @ryan and @Jonathan Lahijani and @thetuningspoon for suggesting this. I've just implemented first class support for this in RockMigrations and it comes in really handy for the development of RockCommerce. There I have a repeater where clients can add Accessories for every Product. Instead of being RepeaterPages they are now \RockCommerce\Accessory objects which is a lot nicer and makes the code a lot cleaner and I can get rid of many hooks and now my IDE actually understands my code ? For everybody using RockMigrations all you have to do to make that work is to place your file in /site/modules/YourModule/repeaterPageClasses/Accessory.php and add the field constant to that class so that RockMigrations knows which field to apply the pageclass to: <?php namespace RockCommerce; use ProcessWire\RepeaterPage; class Accessory extends RepeaterPage { const field = "rc_product_accessories"; } While working on this I have also improved autoloading of custom page classes and autoloading of regular PHP classes or traits: MyModule/classLoader will auto-load regular PHP classes or traits MyModule/pageClasses will auto-load PW custom pageclasses MyModule/repeaterPageClasses will auto-load PW custom repeater classes (and trigger init() and ready() for them) Extensive docs are already on the dev branch (https://github.com/baumrock/RockMigrations/tree/dev/docs/classloader) and will be merged to main begin of next month ? This is also the case when using $pages->newPage(...) - not sure if that's intentional @ryan ?
  14. That day was today ?? https://github.com/baumrock/RockMigrations/blob/38f643989f459e694ff14d3392fad8f90bbe6264/docs/magicpages/readme.md Docs will soon be on https://www.baumrock.com/en/processwire/modules/rockmigrations/docs/ as well ?
  15. <?php $f->entityEncodeText = false; $f->notes = str_replace( "[icon]", "<i class='fa fa-check'></i>", $this->_("Some text [icon] Some more Text.") );
  16. Yeah I'm only talking about the selection part. The field would then obviously be added to the list as normal, not listed as tags inside the inputfield.
  17. Wouldn't it be better to use InputfieldTextTags instead of the boring select field? That has search capabilities already and when having a lot of fields typing is for sure faster than browsing with the mouse ? Fields could still be prefixed with the tag, for example something like [RockCommerce] Price
  18. Yesterday I had a chat with @gebeer and he showed me Cursor - The AI First Code Editor. It's based on VSCode, so if you are working with VSCode it will be a very similar experience. It can help you writing docs: It can help you refactoring code: And it can help you writing newsletters (testing that it understands the contest of the file for the prompt): I'm sure it can do much more great stuff. @gebeer mentioned a @docs feature - maybe you want to explain that? ? You can either access the AI with your own OpenAI API key or you can use their free tier or buy a subscription starting from 20$ per month. I'm testing it but so far it looks like a good companion. What it did not do for me is to translate all JSON files in the /de folder to spanish translations in the /es folder. It told me it can't do that directly but gave me a python snippet how I can achieve this. I'm in contact with @FireWire about that ? Have a good weekend! Ah, and if you are not subscribed to Rock Monthly here is the link: https://baumrock.com/rock-monthly/ ?
  19. I just had a look at an old site that I built for an agency and cannot share unfortunately. But I'd be interested in how that design pattern could have been built in a better way. I know it was more complicated than I first thought, because there are some challenges in this simple looking design: The grid was done using UIkit grid, the dropdown bubble was done using an UIkit accordion. So far so simple. Problem 1: Where to place the bubble in the markup? In the sown example (on desktop) it has to be after the third image. On mobile it's after each image. Problem 2: How to position the pointer properly in the center of the clicked image. Of course the team-page had more than just 3 images. So after the bubble the next row of images was shown. Is there a simple CSS-only solution? I can remember I hacked something together with some JS. It worked, but it was not really elegant. I think I saw a video on youtube the other day, but I can't remember ? Any tipps would be appreciated ?
  20. FYI: You can also "follow" a topic on the top right and then choose when to get notifications about new posts, eg asap or once a day. ? You can even subscribe to whole categories.
  21. Really nice module! Just tried it and it works great and really improves the UI/UX. Thx for sharing ?
  22. Thx @zoeck I agree. I talked to Ryan before developing this module, but it seems he didn't see the need for such a feature. I was asking for a dedicated settings page without any fields that we could have as a standard for other modules to build on. Similar to the admin page with id=2 I thought of /settings having id=100 or something. But I'm happy now with this solution and it's already installed on several sites. ?
  23. I'm proud to share another module with you. Compared to other settings-modules this module has the benefit that it creates a real page, which means: You can access it via $settings or settings() from everywhere You can upload assets like a logo or global images or files You can add/hide/change all the fields of the settings page as you like It (optionally) adds a settings-icon to the main navbar of the backend It has a redirects feature to create short-links like yourdomain.com/example Download + Docs: https://www.baumrock.com/processwire/module/rocksettings/ If you have feedback or any suggestions for improvements let me know!
  24. Compared to previous similar modules this is using SVG icons, so there is no overhead in loading an icon-font or such. Just upload your svg iconset to /site/templates/RockIcons and check the checkbox in the module's settings to load those icons. Rendering a selected icon is as simple as echoing the field, because if you request the field value as string it will return the SVG markup. Download: https://www.baumrock.com/en/processwire/modules/rockicons/
×
×
  • Create New...