Leaderboard
Popular Content
Showing content with the highest reputation on 03/25/2020 in all areas
-
Hey there, hope you are all well! I would like to introduce Nova from Panic.inc, a new IDE and code editor for web developers. The application is developed natively for macOS and is the successor of Coda 2 (if you know it). I'm sitting here in my home office (because of Corona) and yesterday I got the invitation for the beta. Now I have been testing Nova for about 1 day. The application is incredibly fast! I haven't used anything comparable so far (including VSCode). The user interface is very clean and skinnable. Here is a small excerpt of the already integrated features (which of course can be extended by plugins): - Project management - Integrated Remote Publishing - Integrated Git Handling (Push, Pull, Commit, etc...) - Integrated Code Completion (PHP, JavaScript, ...) - Full featured integrated remote file browser for all thinkable protocols - Integrated web preview - Integrated console (local and remote) - Tasks (this seems to be huge! I'm telling you more when I figured out what this can do) - etc... This will definitely be my IDE for the next years! Nova is currently in closed beta. No new tester are accepted. But should be in open beta in the next few weeks! Have a nice week and stay healthy! Greetings, Martin8 points
-
Last update: June 2024 Current stable version: 1.5.4 Dev version: github dev-branch You can find the module on Github and in the modules directory : https://modules.processwire.com/modules/duplicator/ https://github.com/flydev-fr/Duplicator/archive/master.zip Screenshots / Features Dir and files exclusion CRON job Advanced settings Local and Cloud storage duplicator.mp41 point
-
Just created my first VSCode Extension - if you like it please give it a star on Github and rate it on VSCode Marketplace ? Installation: Either via https://marketplace.visualstudio.com/items?itemName=baumrock.pwsnippets or directly in VSCode: Contributions welcome! https://github.com/BernhardBaumrock/pwsnippets1 point
-
1 point
-
The last line was supposed to be $event->return = $page->fullpage_sections; fullpage_sections is my Repeater Field1 point
-
v1.0.7 has some snippet improvements and this new snippet: pwire: Add wired object1 point
-
There's one addition which maybe makes your live a bit easier – if name of admin area is not "admin": $pageAdmin = $this->pages->get('title=Admin'); $repeaterPage->parent_id = $this->pages->get('path=/'.$pageAdmin->name.'/repeaters/');1 point
-
1 point
-
I suggest setting the maxFiles setting of the inputfield dynamically with a hook. There are many different methods you could potentially hook - I don't know if you're talking about Page Edit, ProcessProfile, ProcessUser, or some form on the front-end, and I don't know if by "group" you mean "role". But here is something that you can adapt to suit: $wire->addHookBefore("InputfieldImage::render", function(HookEvent $event) { /* @var InputfieldImage $inputfield */ $inputfield = $event->object; $field = $inputfield->hasField; if(!$field || $field->name !== 'images') return; $user = $event->wire('user'); if($user->hasRole('foo')) { $inputfield->maxFiles = 1; $inputfield->description = 'You may upload a maximum of 1 image.'; } elseif($user->hasRole('bar')) { $inputfield->maxFiles = 2; $inputfield->description = 'You may upload a maximum of 2 images.'; } else { $inputfield->maxFiles = 0; // No limit } });1 point
-
Made more testing with the what i thought was the "offending" images field in the first post. And now i created a new test template and added that field to it and tested uploading images to it on a test page. All of a sudden, no error message and the image was deleted as expected. So this is just a very confusing event. I am just glad that its seems to work again. Wanted this thread to be here in case someone else got this problem and wanted a clue to how to solve it. Also Enabling or Disabling the HTML Encoding formating for Filedescription output does not seem to mather which was the first thought after the tip by Dragan. I just leave this here as info for others.1 point
-
@antpre - I've just committed a new version - field pairings will now work regardless of the "ignore first row" setting. Please try it out when you get a chance and let me know if you still have any problems.1 point
-
Hi @Ivan Gretsky Which links are broken? Hm... Nette Forms... I really like one thing: Synched frontend + backend form validation. But on the other hand I really miss one thing: ProcessWire ? Especially hooks. In Nette there's nothing like hooks as far as I know. They do everything by extending base classes. This can be great for more complex modifications (that's why we now have the new Page classes in ProcessWire), but modifying just one single Inputfield of a Nette form was hard to impossible for me when I played around with it some time (years?) ago... That experience might be a little different know that I made quite some progress in OOP. One thing I could also not get working was CSRF protection via Nette. So I implemented it using ProcessWire's internal feature: Yes... it's obviously been 2 years since I worked on that ? I need some forms on a new project, so I might have a look into a new Forms Module using the new RockNette concept and Nette v3.01 point
-
I guess that tool was not exactly built for mocking up a ProcessWire template/field-setup ? But I think this could be quite helpful - also for asking/explaining questions here on the forum! https://dbdiagram.io/1 point
-
Module updated, CHANGELOG1 point
-
Everybody please take this pandemic really seriously!! Panic does not help for sure, but ignorance or underestimating this situation will cost the life of thousands of people all over the world! As the following chart shows, the mortality highly depends on the amount of people that are in need of medical care at one time! Taken from link 2, see below. I have underestimated it myself just like almost anybody in europe has, as nobody of us here has ever experienced a situation like this before (in contrast to asia). Here are two links that I encourage everybody to read, even if you live in an area that has not (yet) been affected: 1) https://www.washingtonpost.com/graphics/2020/world/corona-simulator/?fbclid=IwAR0ABgvQGxm005seLywxDkZScKImi53Du9lzAlMwrDH6qsaaefW-Oux-Gao They have great simulations of how such an exponential growth can/will happen and what every single person can do against it! 2) https://medium.com/@holger.heinze_81247/coronacodex-my-commitment-during-the-covid-19-pandemic-76613656dac0 I hope that was not offending the forum rules that don't want political discussion... I work 100% remote now and I encourage everybody to do the same if at all possible. Not because I'm afraid (luckily I'm not at high risk as I'm young and healthy), but to take responsibility for all the people around me and keep the number of people needing medical care as low as possible so that the staff in the hospitals does not have to decide which patient (with severe symptoms) is treated and which is not (and will likely die).1 point
-
i added new option in menu options because i needed css class in <a> tag, searched for a while and didn't find any example so had to do the following. $NavOptions = array( 'wrapper_list_type' => 'ul', // ul, ol, nav, div, etc. 'list_type' => 'li', // li, a, span, etc. 'menu_css_id' => 'navbarSupportedContent', // a CSS ID for the menu 'menu_css_class' => 'navbar-nav ml-auto', // a CSS Class for the menu 'current_class' => 'active', 'default_title' => 0, // 0=show saved titles;1=show actual/current titles 'default_class' => 'nav-item', // a CSS class to apply to all menu items 'ahref_class'=>'nav-link' ); added following line in MarkupMenuBuilder.module $this->set('linkClass', isset($options['ahref_class']) ? $options['ahref_class'] : ''); // if $iTag is empty, apply css id and classes to <a> instead if(!$iTag) $out .= "\n\t<a{$itemCSSID}{$class}{$newtab} href='{$m->url}'>{$m->title}</a>"; else $out .= "\n\t<{$iTag}{$itemCSSID}{$class}>\n\t\t<a{$newtab} href='{$m->url}' class='{$o->linkClass}'>{$m->title}</a>"; suggest me if there is any better way out!!1 point
-
Hi Flydev, I have been thinking about one feature request if you are taking any. I don't want to add more work, but perhaps something to think about. On the Duplicator settings page, I have used the "Files and folders excluded from" checkbox (very handy) and also the "Custom excluded files and paths'. I'm wondering if there is any way of excluding any custom file directories, rather than file extensions? Here are a few examples: 1. After adding the AWS library via composer, Duplicator is backing up the Composer directory called vendor (at the same level as wire, files etc...). This file has become quite large over time. 2. We also at times create directories at the same level for legacy files when building a new client sites, where the legacy files need to still be accessible. Our latest client had a very large media folder nearly 7GB. ie /media/ 3. When using ProCache, Proche adds two folders in the assets directory called ProCache-###### and pwpc. The ProCache-#### file is a collection of all the static versions of the pages on the site, which can also become quite large depending on the site. With most of these directories, we do have a good idea what file extensions are being used and can exclude them in the 'Custom excluded files and paths' section. However, with the Composer vendor directory, there are so many file extensions being used with a very deep nested group of folders. This makes for a very large list of possibilities to exclude. With a few of our sites, our backups went from ~90MB to over 700MB. It would be great to hear your thoughts on hiding directories/folders when you have time. Below is a list of some of the file paths we struggle with. /vendor or any custom directory at this level /site/assets/ProCache-### /site/assets/pwpw/* Thanks1 point
-
I have submited the Spanish es-ES for ProcessWire 3.0.x 100% Translated, if not, let me know. Pull requests, contributors,... are all welcome. http://modules.processwire.com/modules/pw_spanish/ Enjoy. .a1 point