AndZyk
Members-
Posts
713 -
Joined
-
Days Won
10
Everything posted by AndZyk
-
Hello @theoretic, have you tried StaticWire? https://processwire.com/modules/static-wire/ I have used it once for a locally hosted website for a exhibition, but it worked for me as a basic SSG. For online hosted websites I always use ProCache, which is AFAIK similar to a SSG : https://processwire.com/store/pro-cache/#procache-is-for-speed-and-seo Regards, Andreas
-
Hi @SIERRA, to avoid this "issue", you would have to extract the CSS that is rendered above the fold and insert in inline: https://web.dev/articles/extract-critical-css In the article there are some npm modules mentioned, which seem to help with identifying the CSS above the fold. But personally I have never done this, because I don't want to separate my CSS into different places. For me it is enough to minify the CSS with ProCache to get a good PageSpeed score. Regards, Andreas
-
Great website ?
-
Weekly update – 7 June 2024 – Functional Fields
AndZyk replied to ryan's topic in News & Announcements
Thank you, I use this field on every website. ? -
For me too. In the past I had to manage a Contao website and Contao is since version 4 build on Symfony. So you have to use Composer for almost everything, as far as I know. They have a tool Contao-Manager which provides a GUI instead of using the CLI, but its better if you are very experienced with Composer. This website in particular had many extensions and dependencies, some of them were discontinued, which could easily break the complete Composer setup and with that the whole website. I had spend hours and days just to init, rebuild, upgrade the composer dependencies, just to get the website running on my local environment. I am glad that ProcessWire websites cannot break this easily and I don't have to be a Symfony/Composer master just to install modules. ? Of course as you can tell I am biased and maybe not experienced enough with Contao and Composer. To be fair, you can in theory install extensions in Contao without Composer. Also this just could have been a problem of this particular website.
-
Hi @mel47, you mean show by using field dependencies? If the field is not inside a repeater field, than id=1042 would be enough. If the field is inside a repeater field I am not sure, but I think it would be possible with this module: https://processwire.com/modules/custom-inputfield-dependencies/ Regards, Andreas
-
Hello @sebibu, you can find successful or failed logins under "Setup => Logs => Session" (/processwire/setup/logs/view/session/). You can search those logs for example by username. It should also be possible to search those logs with the API: https://processwire.com/api/ref/wire-log/get-entries/ Hope this helps. ? Regards, Andreas
-
Thank you for pointing me to the right direction. ? I don't often use hooks, but here is my current hook wich works for me: <?php $forms->addHookAfter('InputfieldFormBuilderRecaptcha::renderScript', function($event) { $url = "https://www.google.com/recaptcha/api.js"; $value = "<script class='require-consent' type='text/plain' data-type='text/javascript' data-src='$url' data-category='functional'></script>"; $event->return = $value; });
-
It works with PrivacyWire if I edit the InputfieldFormBuilderRecaptcha.module on line 109 like this: <?php /** * Render Google reCAPTCHA script * * @return string * */ public function ___renderScript() { $url = $this->getScriptUrl(); return "<script class='require-consent' type='text/plain' data-type='text/javascript' data-src='$url' data-category='functional'></script>"; } But I don't think I can hook the ___renderScript function. Has anybody a suggestion how I can hook into the output of the script? Currently I don't have access to the FormBuilder support board, but I will renew our license soon, so I will ask there.
-
Thank you, next time I will try to use the format options. ☺️ Just FYI I had selected None and had the default values in the options textarea of the module settings. Regards, Andreas
-
Hi @adrian, thanks you for your response. You are right. When I developed the website I wanted a special phone number format, so I choose under Phone Output Format "None" and build my own format like this: <a href="tel:<?=$person->phone->unformattedNumberNoExt?>"> <?php if ($person->phone->area_code) { echo $person->phone->area_code; } else { echo "07723"; } ?> <?php if ($person->phone->number) echo "/{$person->phone->number}"; ?> <?php if ($person->phone->extension) echo "-{$person->phone->extension}"; ?> </a> Probably because I didn't understand the syntax of the Phone Output Format at the time. ? If you have to choose a Phone Output format, wouldn't it be better to remove the option "None"?
-
Hello @ryan and @joshua, I am using the InputfieldFormBuilderRecaptcha on many sites and it is working great. But it came to my attention, that the InputfieldFormBuilderRecaptcha maybe isn't GDPR compliant, because it sets a cookie and communicates with Google without user interaction. Would it be possible to couple the reCAPTCHA with for example PrivacyWire, so that you first have to confirm the cookie consent, before you can see the reCAPTCHA? I think you could also use the render hooks of Form Builder. I will try this, but don't often use hooks. Regards, Andreas
-
Hello @adrian, thank you for this module. I am using it on one of our websites and get following warning with PHP 8.2.0 in TracyDebugger: Could you please update your module to remove this warning? ? Regards, Andreas
-
LocomotiveCMS is also similar to ProcessWire. But I only have little experience with it. What turned me off was the need for Ruby and long responding time to questions.
-
I have already mentioned it a few times, but I can recommend Kirby CMS as alternative to ProcessWire. It is very similar to ProcessWire in the structure and API, but needs no database because it is file based. Also they have a nice website, documentation and marketing including detailed changelogs. It is not as feature rich as ProcessWire and not free, you have to pay a license for commercial use, but the marketing and presentation is better in my opinion.
-
I would prefer this too.
-
Sorry, I should have read the question more carefully and not made a typo in my example. I just wanted to give some solutions, based on litte information, but was in a hurry. Ignore my code and use the other examples.
-
Freut mich zu hören, dass es funktioniert hat. Ohne mehr Informationen, kann ich leider nichts zu dem Zähler sagen. Ist der Zähler ein Feld vom Typ Nummer in einem Template? Ist der Zähler die Gesamtzahl aller Seiten mit dem Template „Authlogs“? Die Seiten mit dem Template „Authlogs“ sollten im Papierkorb sein und je nach Selector, können diese immer noch gefunden und für eine Gesamtzahl dazu gezählt werden.
-
Hallo @Frank Schneider, du könntest die Seiten per API $pages->delete() löschen: // Alle Seiten mit dem Template authlogs nacheinander $authlogs = $pages->find('template=authlogs'); foreach ($authologs as $authlogPage) { $pages->delete($authlogPage); } // Alle Seiten der Elternseite mit dem Titel Authlogs rekursiv $authlogsParent = $pages->get("title=Authlogs"); $pages->delete($authlogsParent, true); Einfach irgendwo in einem Template einfügen und die Seite mit dem Template aufrufen. Ansonsten können glaube ich Module wie der ListerPro oder Batch Child Editor Stappelbearbeitung von Seiten. Gruß, Andreas
-
Hello @MoritzLost, I had a similar issue with a selector a few weeks ago containing not equal to (!=) and an or-condition. My issue was fixed, but maybe this could be related: https://github.com/processwire/processwire-issues/issues/1802 Regards, Andreas
-
Module for auto upgrade of ProcessWire and modules
AndZyk replied to AndZyk's topic in Wishlist & Roadmap
Thanks for your feedback. I usually also upgrade, whenever there needs to be something done on the website. From a security perspective I also don't think there is a need for auto upgrades, because there are never security risks, that need to be fixed. Auto upgrades would be nice mainly for convenience. ? -
If you disable the Purifier feature, the iframe should not get removed. I have tested this by manually adding an iframe in the source code view.
-
I guess to rename the default classes you have to use custom JSON settings: https://processwire.com/blog/posts/using-tinymce-6-in-processwire/#using-custom-json-settings https://www.tiny.cloud/docs/configure/content-formatting/ But maybe @ryan knows an easier way. ?
-
Hello @dicabrio, I think the Iframe gets stripped out by the Purifier feature in the textarea field settings: Personally I would not disable this feature and use Hanna Code instead: https://processwire.com/modules/process-hanna-code/ Regards, Andreas