-
Posts
6,671 -
Joined
-
Last visited
-
Days Won
366
Everything posted by bernhard
-
I love the uikit css framework and everybody here should know it since the admin is built upon it. Here are several other great projects around the uikit framework, like free templates, IDE code snippets, starter kits, and also a backlink to processwire ? https://github.com/uikit/awesome-uikit
-
Anybody here loving UiKit and VSCode? This might be something for you ? https://marketplace.visualstudio.com/items?itemName=Keno.uikit-3-snippets
- 246 replies
-
- visual studio code
- vsc
-
(and 2 more)
Tagged with:
-
Hey @thetuningspoon I just tried your suggestion about the WireArray/WireData... It's awesome ? I did it a little differently though, because my RockGrids don't work the way you implemented it. v1.0.9 introduces a new method: $finder->getWireArray(); This will return a WireArray containing WireData objects just as you suggested: For anybody wondering what this update could be used for: You can use all the pw api magic on that objects: New version is on GitHub - I'll change my public projects to github to have the PW modules directory automatically in sync: https://github.com/BernhardBaumrock/RockFinder/commit/46377ba6ea399f8557893684da3c3dd486b2c44e
-
All cookies cleared? Cache reset etc?
-
Thanks for sharing! I think I wouldn't buy a theme of a theme company that uses a bought WordPress theme for their own website ? Or am I biased?
-
That's two approaches I did in my modules: https://gitlab.com/baumrock/RockPdf/blob/master/RockPdf.module.php#L37-38 https://gitlab.com/baumrock/RockForms/blob/master/RockForms.module.php#L63-64 But I have to admit that I don't use all those composer, gulp and whatsoever tools, so there might be better solutions and I'd be happy to see how others do ?
- 10 replies
-
- 1
-
-
- beginners
- helper function
-
(and 1 more)
Tagged with:
-
Very nice tutorial, thx! I wonder if that would be nice to have as a module. Installable, reusable, one-click-updateable.... But maybe it would be easier to extend available libraries, such as https://doc.nette.org/en/2.4/html-elements
- 10 replies
-
- 4
-
-
- beginners
- helper function
-
(and 1 more)
Tagged with:
-
Thx adrian, I still have the bug on the AOS language switcher z-index. Any news on this? On the config var the description column is very large, leading to a horizontal scrollbar. Maybe it would make sense to use text-overflow: ellipsis; here? Is it intended that the links to the api ref opens in the same window? I know we can middle-click, but I wonder if it was better to open it in a new tab by default? Sorry, I don't get what you are talking about ?
-
Great to hear that. I wouldn't call it well thought out, though. When I started building it I had far too less knowledge about what's going on on the regular page finder. I think the module could be improved a lot on several sides. But it get's all the jobs done for me and I can build RockGrids with thousands of pages that load in some ms compared to loading times above 30s that I had before. I'd love to have a better version of RockFinder in the core ? Sounds like a good idea, I'll have a look ? PS: 2 seconds still sounds very slow for 200 rows. May I see your finder setup?
-
Did I already say that I love PW? ? I had to write an offer today and I wanted to link to a portfolio website that I've built, but the link was too long for the PDF. Then I wanted to use one of the url shortening services, but it felt wrong to put a link like bit.ly/409weifsd on my offer. I then just enabled UrlSegments on my website's home.php template, added a repeater with fields "title" and "link" and put 5 lines of code to get my very own custom short-links: $shorturl = $sanitizer->text($input->urlSegment(1)); if($shorturl) { $link = @$page->shorturls->findOne("title=$shorturl")->link; if(!$link) throw new Wire404Exception(); $session->redirect($link); } If you want to try it out: https://www.baumrock.com/pw-demo Any suggestions for improvements are welcome ?
- 2 replies
-
- 12
-
-
Thx for reporting that. Could you please provide a working solution so that I don't need to setup a completely new environment using a subdir? Thx
-
Thx, done! Also added an example for the hosts setting.
-
Thx robin I know about that but somehow it didn't work. I need to see why and when that happens, but setting the maxage didn't solve it unfortunately.
-
How to allow image upload in configurable module form?
bernhard replied to JayGee's topic in Module/Plugin Development
Exactly. That's one of the reasons why I don't like site profiles and created ProcessWire Kickstart. It's not finished at all, but it works for me and it's just a showcase of a different and more flexible approach. Yes, you're right, and that would have been my suggestion for you to try. Module development is great and a lot of fun. From what I've read in your posts (this one was awesome btw) I guess you'll also like it a lot ? Creating pages, templates and fields can be a little tedious though. There is the Migrations Module that has some helpers. I'd love to have a nicer and cleaner API though for such tasks, also handling naming collisions etc., eg createField, createTemplate, addFieldToTemplate, removeFieldFromTemplate, editInContext, etc, etc Maybe you want to take that idea as inspiration and start something like this while playing around with pw module development? ? -
Yes! And a prev/next link on each post ? Great updates! Love them ?
-
If anybody might wonder. This is how to setup permissions for a sub-page of a processmodule: As easy as adding the permission to the nav item! If you want the permission to be created/deleted on module install/uninstall you also have to add it in the "permissions" array: $info = [ 'title' => 'ProcessProjects', 'summary' => 'ProcessModule to manage all Projects', 'version' => 1, 'author' => 'Bernhard Baumrock, baumrock.com', 'icon' => 'thumbs-up', 'permission' => 'projects', 'permissions' => [ 'projects' => 'Run the Projects Management Module', 'aggregate' => 'Create Aggregated Reports', ], 'page' => [ 'name' => 'projects', 'title' => __('Projekte'), ], 'nav' => [ [ 'url' => '', 'label' => __('Projekte'), ],[ 'url' => 'mails', 'label' => __('E-Mails verwalten'), ],[ 'url' => 'reports', 'label' => __('Berichte verwalten'), ],[ 'url' => 'aggregate', 'label' => __('Aggregierten Bericht erstellen'), 'permission' => 'aggregate', ], ], ]; Make sure to logout/login, otherwise you won't see the changes in the menu! If you call the ProcessModule's page directly you will instantly get the result of the changed permissions: Whereas in the menu it is still there until you logout+login: @szabesz you asked for that in the blog comments...
-
Just a note if anybody gets in trouble when creating complex PDFs... It seems that there is some bug related to the tempdir that is created for the pdf. If the PDF takes long to render it can happen that this folder is deleted automatically before the PDF is done. Then you'll get an error. In my case this solved it: $pdf = $modules->get('RockPdf'); $pdf->settings([ 'tempDir' => $this->config->paths->root . 'site/assets/cache/WireTempDir/.RockPdf/test/', ]); For sure just a quickfix, but I'm busy...
-
PW can set the mime type, so I guess it could be related to it. But I've never used this feature, so I don't really have an idea. I also don't have time to look into that atm. Maybe someone is more experienced in this area and can help...
-
Agree. @tpr maybe an idea for AOS to add some hints to the tree when moving items around? I have no specific idea yet ?
-
Thx @AndZyk, Hm... There are situations where I also need it in my php or otherwhere. I'm now using this one: https://github.com/leehooi/vs-color-picker The nice thing about this is that you can pick the colors also from other applications (like an open browser's website background). Yeah, good point. The reason for that is that I create the classes dynamically: I then have the colorcode in my php wherever I need it and I can also create colors based on user input (color picker field) and have the proper classes for my RockGrid ?
- 246 replies
-
- visual studio code
- vsc
-
(and 2 more)
Tagged with:
-
Interesting. I got some mime-type errors in the console from time to time. Maybe that could be the reason? No idea how I should track that down since everything is working fine on my side ?
-
Thx for sharing ? Would be interesting WHY they preferred it ? Maybe they where just used to the old way of doing it. This does not mean that another way could not be easier/better in the long run. I remember when I first installed Office 365 I was quite upset because everything looked different then on the old Office 2007/2010 but now it's the other way round: I love the new Office and when I have to work on an old computer with old Office I'm totally bugged ?
- 17 replies
-
- 1
-
-
- cms
- comparison
-
(and 1 more)
Tagged with:
-
Hey @charger, thx for that info. Could you please check if that is the same in a non-pw setup? I mean creating a php file only for that purpose, importing mpdf, creating the pdf and trying the show() and download() equivalents of mpdf?
-
Any recommendations for a good color highlighting plugin? I want one that highlights the colors in my code (eg #afafaf should get grey), but I also want one where I can open a color picker. Or maybe two plugins? The ones that I have does not seem to work in .php files, for example.
- 246 replies
-
- visual studio code
- vsc
-
(and 2 more)
Tagged with:
-
No problems here. Which Browser? Can you try whether using the original mpdf code works (without using my shortcuts)?