-
Posts
3,061 -
Joined
-
Last visited
-
Days Won
20
Everything posted by szabesz
-
Sounds great, just one question: how will you decide which "warning color" to use, orange vs red? I guess red should not be used for warnings at all. On the same account: "something else that you should be aware of" will be "fail / error / you-MUST-be-aware-of", right?
-
There is one big issue with page builders: working with them can still be time consuming depending on the use case, quote: source: https://wordpress.org/support/topic/i-was-really-ready-to-give-this-a-good-shot/ https://wptavern.com/gutenberg-plugin-garners-mixed-reactions-from-new-wave-of-testers Being a designer I can cope with any page builder for sure, but lots of editing tasks are even more time consuming that way. A page builder and a rich text editor both have their shortcomings and strengths, none of them is superior to the other. For example, my current clients would have a hard time working with page builders, as they only need simple RTE features and do not want to "learn more than that" for sure.
-
Sure, and if they do not do anything except for providing a donate button and some "transparency" then probably only the most widely used projects such as Webpack can benefit from it. Thanks for pointing it out! EDIT: I also closed the issue at GitHub.
-
Currently ? It is just an idea, for consideration which might be worth evaluating...
-
I see. In an effort to help, I updated my signature: Please don't forget to give a star at GitHub to the best in the ProcessWire world: ProcessWire, Tracy Debugger and AdminOnSteroids. Anyone not using a signature just yet might want to copy me ?
-
Hi, I've just read about Open Collective: https://wptavern.com/new-backyourstack-tool-drives-financial-support-for-open-source-projects ProcessWire or the top 3 (or 4?) most popular ProcessWire modules might be able to utilize it. I opened a "request": https://github.com/processwire/processwire-requests/issues/218 Top modules: https://weekly.pw/issue/202/ Tracy Debugger by @adrian AdminOnSteroids by @tpr FormBuilder and ProCache by @ryan
-
How to create a copy URL Fieldype?
szabesz replied to Thomas Diroll's topic in Module/Plugin Development
Hello, I have something similar I hope you can adapt it to your needs. Mine is for user templates: <?php //adds a button to the end of the user edit page: $this->addHook('ProcessPageEdit::buildForm', function (HookEvent $event) { $current_page = $event->object->getPage(); if ($current_page->template->name != 'user') return; // this button is for the user edit page only if (empty($current_page->user_family_name)) return; // custom field is not yet filled in, which means the new User has not been saved but still being edited in the admin $id = (int) $current_page->id; if ($id != 0) { if ($current_page->hasRole('mycustomrole')) { $href = createLink($current_page); // this is a custom function to be implemented, it must generate and return the required URL $field = $this->modules->get('InputfieldButton'); $field->attr('class', $field->class . " my-custom-css-class-if-needed"); // this is just opitional, I left it here as an example $field->attr('value', 'Copy URL to clipboard...'); $field->attr('data-clipboard-text', $href); // data-clipboard-text is needed by https://clipboardjs.com/ $field->attr('href', ''); // $href $event->return = $event->return->append($field); } } }); The copy to clipboard action is performed by https://clipboardjs.com/ which can be loaded by the admin using various techniques or free modules (such as AdminOnSteroids or Admin Custom Files) or one can simply put this line into config.php: $config->scripts->add($config->urls->templates . "clipboard.min.js"); where clipboard.min.js is in the templates directory, for example. EDIT: I forgot to note that the hook goes into init.php -
Tough question ? Have you seen this module? Edit: or this one as another related alternative:
-
It must be. ProcessWire almost never introduces breaking changes at API level. The API gets additions and bug fixes only.
-
I do not remember becoming it a reality, the most recent discussion seems to be this one: There are some other links in it pointing to other related topics.
-
TextareaLanguage not working in Repeater-field
szabesz replied to Andreas Faust's topic in Multi-Language Support
Hello, If it is a fresh ProcessWire install then we are probably talking about a bug. If you have the time, could you please try it with the latest "stable" (3.0.98) too? And based on the results I guess you will be able to decide whether to report it or not. -
I have ff Works too and often use it to covert video files. While I like its GUI and ffmpeg too, the fact that ff Work's GUI is not mac OS native makes it a bit cumbersome to use in some cases but for the price/features ratio I have not found a better alternative.
-
+1 I've been also wondering about this for a while ?
-
Have you heard of storage quota? ?
-
Hey @horst n @pwired How could you forget @bernhard's blog post? https://processwire.com/blog/posts/building-custom-admin-pages-with-process-modules/? @TheProcessWireLearner Welcome to the forums! Regarding PHP itself: https://www.tutorialspoint.com/php/php_constants.htm I like recommending this, as reading these tutorial pages is enough for anyone to get started, you do not need to know too much more PHP in order to achieve a lot with ProcessWire. I also recommend keeping an eye on: https://processwire.com/talk/discover/unread/?&view=condensed in order to learn from others.
-
Pretty good article about jQuery and the craziness of rejecting it "no matter what": https://www.i-programmer.info/news/167-javascript/12017-github-removes-jquery-why.html
-
A joke? Sounds quite realistic to me ?
-
I agree that the description is a bit ambiguous, I've been also wondering how to properly interpret it but I came to a similar conclusion, ie. this option is for "front-end API calls only" meaning where output formatting is ON by default: Quote: "pages on the front-end of your site always have output formatting on, unless you've turned it off, with $page->of(false)." Output formatting is always off in a module by default, and the explanation in your screenshot has examples with $page and not $this->page. Also, it is talking about front-end API access checks only. As a result, if it does not affect backend (ie. admin) access checks, then you can use this option for what you are describing, At least I use it that way too ? However, maybe others can put together a better explanation than this one of mine ?
-
Hi, I always limit PW's Images inputfield to 50 images which is normally just enough for most sites and it also makes sure storage requirement does not skyrocket ... I guess it is not feasible for this site you mention, so you might want to consider using @kongondo's Media Manager module: https://mediamanager.kongondo.com/ sure it is commercial but at the same time feature rich and should not have problems dealing with lots and lots of images.
-
Exporting is a resource intensive task, if you have a lot to export.... In this case I would recommend cloning the site by copying all files, adjusting config.php and anything else that matters + simply cloning the database too. You can automate it by scripting or using a tool which supports such operations. There are various forum threads discussing it, for example: https://processwire.com/talk/topic/14837-best-practise-to-implement-changes-in-pw-from-development-to-production/ https://processwire.com/talk/topic/3998-your-deployment-process/ https://processwire.com/talk/topic/3113-how-to-transfer-processwire-from-local-installation-to-online/ etc...
-
[answered] Cropped images are not in Pageimages. Why?
szabesz replied to szabesz's topic in API & Templates
I could track it down and reported it as it looks like a bug in the core: https://github.com/processwire/processwire-issues/issues/650 In short: If Inputfiled Images with "Overwrite existing files" is ON then creating a cropped image yields created=1970-01-01 01:00:10, ie. when this option is on, ProcessWire does not update the "created" field in the database. Thanks for the help guys! -
[answered] Cropped images are not in Pageimages. Why?
szabesz replied to szabesz's topic in API & Templates
I have uninstalled almost all third party stuff to no avail. I also tested another site of mine which was last updated half a year ago or so, and that site has the same issue even though that the "old" site was developed "from scratch" just as this one I am working on. So the relation between the two is that I use similar modules and settings, of course. I also installed a clean PW 3.0.108 which works as expected. -
[answered] Cropped images are not in Pageimages. Why?
szabesz replied to szabesz's topic in API & Templates
Thanks a lot! I've been hit by this "1970-01-01 01:00:10" issue for sure! If I manually change created in the db table, then all is good. Now I "just" have to track down what causes this. Since I do not even have any hooks added by me just yet, it is probably a module in action. At least this is where I look first. No, it' doesn't sound like that. I just forgot to state that it happens with all sorts of JPGs I tried. -
[answered] Cropped images are not in Pageimages. Why?
szabesz replied to szabesz's topic in API & Templates
Yep, they do look suspicious but I cannot see where to go from here... @ryan or @horst maybe? ? I need to go to bed now but in the morning I will try it out with a clean install. Thanks for your time! -
[answered] Cropped images are not in Pageimages. Why?
szabesz replied to szabesz's topic in API & Templates
Yes, that's what you can see in the screenshot. I've been fiddling with this issue for three hours by now ? I also created another one, I have them both along with the original one: