-
Posts
1,510 -
Joined
-
Last visited
-
Days Won
16
Everything posted by Ivan Gretsky
-
PW3 core licence change from GPL2 to MPL2
Ivan Gretsky replied to Ivan Gretsky's topic in General Support
Thanks for the explanation, Ryan. Clear, clever and polite as always. I thought that this could be related to Avoine new project on top of PW. And it is... but in a broader sense. And I guess Teppo is right. For the sake of nurturing a devoted and confident open source community such questions should probably be debated for a while. -
Documentation of new features instead of just blog posts?
Ivan Gretsky replied to pwFoo's topic in Wishlist & Roadmap
I think you are right about that. But the task would require a team of well informed and highly capable people to help Ryan as it is probably not the task that could be easilly managed by one. One man is just not enough to manage both the developmrnt and the documentation (and the promotion, and the translation...) Some day the time will come to gather forces, so better get prepared - read the code and learn to write! -
In the comments to the latest PW blog post Teppo noticed the licence change that seem to be present in the new 3.x branch of ProcesswWire. It has changed from GPL2 to MPL2. What does this switch means to us? Earlier Ryan said that he is not so much into legal matter and just goes along with the big players like Wordpress and Drupal in the field of licencing, Obviously that is no longer the case. I am no expert in this matter, but as I can guess MPL2 will allow to produce a commercial version of PW to exist alongside with a community one. I am starting this topic to find out about what real difference the licence change will bring and to find out about the core development team plans concerning future of PW development.
-
Another question. I try to tanslate the theme, but with no luck. I did add AdminThemeRenoHelpers.php for translation and added translations for strings I needed - the strings still appear in English. I can easilly translate strings from the core files like admin.php. What can it be?
-
Hallo, Tom! Could you please hide the profile link in the avatar dropdown for users without profile-edit permission like you did in footer?
-
Run ProcessPageEdit module in executeEdit method
Ivan Gretsky replied to Ivan Gretsky's topic in Module/Plugin Development
I found this thread and it is a treasure for anybody doing some custom backend stuff! I still don't get half of it, but the answer is certainly there. Edit: Can't make the topic "solved" as this thread probably does not alow this.- 1 reply
-
- 2
-
-
And it is certainly worth exploring not only from developer point of view. Decent argument is so rare nowadays. Thanks for the share, diogo.
-
I try to run ProcessPageEdit in a executeEdit method of another ProcessModule like this: public function ___executeEdit() { $out = $this->modules->get("ProcessPageEdit")->execute(); return $out; } It does work for almost everything, but not for a few selects, those option lists are formed with "Custom selector to find selectable pages" option + "Show this field only if". Those fielda appear blank and the dropdown is formed with root children pages. I think I could simply add a ProcessPageEdit as a child to my process page as a workaround, but it is still a bug...
- 1 reply
-
- 1
-
-
I do not think that there is (or is needed) an IDE specifically for PW. But there are ways to make some IDEs work better with PW (autocomplete and so). Try reading through these threads: 1) https://processwire.com/talk/topic/3336-pre-release-templatestubs-ide-support-for-page-objects/ 2) https://processwire.com/talk/topic/10747-phpstorm-autocompletion-and-typehinting-of-wirexx/ 3) https://processwire.com/talk/topic/2770-recommend-a-code-editor-with-ftp-for-working-on-template-files/ 4) https://processwire.com/talk/topic/3518-what-ide-do-you-utilize/ 5) https://processwire.com/talk/topic/7427-pw-api-as-autocomplete-in-your-ide/ 6) https://processwire.com/talk/topic/1498-better-phpdoc-comments-in-pw-classes/
-
is Key-binding for STRG-S in Admin-Editpage possible?
Ivan Gretsky replied to Pauline's topic in Getting Started
Damn, I like germans! CTRL is STRG on German keyboards, but still CTRL on Russian ones. Got some national pride! But if we didn't lose that cold war it could look like this... -
Filtering results by a field within a ProFields Table
Ivan Gretsky replied to Reid Bramblett's topic in Getting Started
Maybe like this: $place=$page->place; $links = $pages->get("template=links, categories=$pcat"); echo "<h4>$links->title</h4> <ul>"; $filteredLinks = $links->urls->find('place=$place'); foreach ($filteredLinks as $u) { if ($u->desc) echo "<li><a href='$u->poiurl'>$u->urltext</a> ($u->desc)</li>"; else echo "<li><a href='$u->poiurl'>$u->urltext</a></li>"; } echo "</ul>"; -
is Key-binding for STRG-S in Admin-Editpage possible?
Ivan Gretsky replied to Pauline's topic in Getting Started
Check this out. Is that what you looking for? What is STRG by the way? -
Good day! Sometimes I find folders with names starting with a dot in the modules directory. For example: .ProcessCustomUploadNames .ProcessPageListerPro I believe they appear after upgrading with ProcessWireUpgrade module. Could you please confirm my suggestion. What is the use of those folders? Are they there for backup purpose? Is it safe to delete those folders?
-
Is there a way to define dynamic role on runtime based on user role? I have a number of similar roles named similarly (and they will be adding) for each of which I need to make a few dynamic roles. So I am looking for a way to make it DRY. Edit: I mean something like making a hook that generates a dynamic role via API.
-
Thanks. Your module does redirect the user where it is needed. Bit I still have the "Pages" menu visible. How can I get rid of it?
-
Exceeds max allowed file size error on live server
Ivan Gretsky replied to Ivan Gretsky's topic in General Support
1) I found the problem and the solution. Processwire cannot read post_max_size if it is defined in bytes (see here). It sets it to 5M in that case instead. Define your php_ini variables as 100g, 50m, 1200k, but not as 104857600. 2) And I have not been able to redefine the value due to little typo: it had to be $f->maxFilesize instead of $f->maxFileSize. -
Good day! I need to make custom admin interface for specific user role. I want them to only see those menus and menu items I selected. I do not want them to see "Pages". I plan to use custom Process modules under custom admin menu. But I do want to use PageEdit admin interface for editing pages. To make it possible, I have to set edit permission to the pages they are to edit. But that uncovers "Pages" menu for them. How can I achieve that, still using defaul or Reno admin theme? Or is it preferable to make my own?
-
If you are talking about moving content from one PW installation to another, you have several options, which are related: 1) Master Adrian's Migrator module. 2) Exporting and importing templates/fields with built-in functionality. 3) Creating a site profile. 4) DB backup + moving file data manually. But you should really just fix your errors, not run from them .
-
You can probably workaround by using subsequent selectors like this: $p1 = $pages->find('template=accommodationtype,availability.column=1194'); $p2 = $p1->find('availability.row=1889'); $p3 = $p2->find('availability.value=1'); A few more db queries... But if you are right it seems like an unwanted behaviour. I recommend making a github issue or even a PR.
-
Exceeds max allowed file size error on live server
Ivan Gretsky replied to Ivan Gretsky's topic in General Support
Sorry, Mr. Stevens, but i did not get it) What should I do? It seems like both eck upload_max_filesize and post_max_size are set to maximum values... Should I force one to be less than another? -
Exceeds max allowed file size error on live server
Ivan Gretsky replied to Ivan Gretsky's topic in General Support
Thank you, Horst! I did check upload_max_filesize and post_max_size. The are both equal to 1047527424. It is a custom module. I create InputfieldFile like this: $form = $this->wire( 'modules' )->get('InputfieldForm'); $f = $this->modules->get( 'InputfieldFile' ); $f->name = 'upload_file'; $f->label = $this->_( 'Upload File' ); $f->extensions = 'csv jpg db zip'; $f->maxFiles = 2; $f->maxFileSize = 0; $f->unzip = 0; $f->overwrite = false; $f->destinationPath = $path . '.....'; $form->add( $f ); When I echo $f->maxFileSize on localhost it is 104857600, but 5242880 (5MB) on live. Both numbers won't change no matter what i put after $f->maxFileSize =. Though I can easily change the maxFiles variable. It did work a while ago... What could happen? -
I got a process module with a file upload field, which used to work fine, but recently started to give me this massage "SomeFile.zip - Exceeds max allowed file size". On the localhost everything works. I did upgrade PW not so long ago. But it seems like it is a server problem. But what is it? What to check? Please help.
-
Released: PadLoper (commercial eCommerce platform for ProcessWire)
Ivan Gretsky replied to apeisa's topic in Modules/Plugins
Congratulations Antti and all the PW community! This is the first 3rd party script for PW I did buy. I like free open source better , but the presence of commercial activity around the product is surely the sign of it being successful. I think we all should benefit from products like Padloper being developed and made available to us. So maybe it is time to think about re-building modules directory, making it a full blown marketplace? -
Soma's module can do it right out of the box - see instructions here. And it is not hard to do it yourself with a has_parent selector (look here). Be more specific and we can help you better .