Jump to content

AndZyk

Members
  • Posts

    724
  • Joined

  • Days Won

    10

Everything posted by AndZyk

  1. I add Git in the root folder and can recommend GitKraken as app. 😀 I have a develop and a master branch and an origin remote. Our remote repositories are hosted on Bitbucket. This is my current .gitignore file: Regards, Andreas
  2. Hello @froot in the past I have imported the FullCalendar scripts like this: <script src="<?=urls()->templates?>node_modules/@fullcalendar/core/main.min.js"></script> <script src="<?=urls()->templates?>node_modules/@fullcalendar/core/locales/de.js"></script> <script src="<?=urls()->templates?>node_modules/@fullcalendar/interaction/main.min.js"></script> <script src="<?=urls()->templates?>node_modules/@fullcalendar/daygrid/main.min.js"></script> <script src="<?=urls()->templates?>node_modules/@fullcalendar/timegrid/main.min.js"></script> <script src="<?=urls()->templates?>node_modules/@fullcalendar/timeline/main.min.js"></script> <script src="<?=urls()->templates?>node_modules/@fullcalendar/list/main.min.js"></script> <script src="<?=urls()->templates?>node_modules/moment/min/moment.min.js"></script> <script src="<?=urls()->templates?>scripts/global.js?v=<?=time()?>"></script> In the "global.js" I have initialized the FullCalendar. If you want to use the non-minified scripts, then you have to use WebPack I think. But I am oldschool and don't use WebPack. 😄 Regards, Andreas
  3. Hey @bernhard, here is a little screencast in Firefox: Visit processwire.com Open the search field Enter a search term Wait for the autocomplete results Hit enter to get to the search results page I get this in Chrome, Opera, Edge and Firefox. Safari has no issue.
  4. Hello @ryan, when I am using the search function of the ProcessWire website and hit enter after the autocomplete suggestions are shown, I get to the search results page with all results shown as JSON. When I reload the search results page, the results are displayed normal. Regards, Andreas
  5. I can see the image when I enter your URL in WhatsApp. But yes, it would probably be better to validate your HTML and remove the duplicate <head>-tag. Also I would recommend using https for all your links, to avoid mixed content. You also have a unnecessary space at the end of og:image content, but that should be no problem. 😉
  6. AndZyk

    eltikon.online

    @DrewPH Glad to hear you are enjoying to work with ProcessWire. 👍 Sorry for nitpicking, but there is a left-over image from WordPress on your newest article. 😅 https://www.eltikon.online/catenary/
  7. AndZyk

    eltikon.online

    Congratulations to your new site. 👍 Just wanted to mention that your tag pages seem to throw an error, f.e.: https://www.eltikon.online/tag/trackwork/ Regards, Andreas
  8. Thank you for correcting me, I didn't knew about this option. I have been using Functional Fields since it was released, because of this and the nicer editor. Good to know that this issue was fixed. 👍
  9. Hello @SIERRA, in theory the translated string translation should be display, when visiting the translated page. In your case "Welcome to our website" should be translated when visiting the "/test-language-tn/". It is not necessary to manually switch the user language in the template file or to save it to a user, unless you want to build a different translations solution. In your screenshot I cannot find the string translation "Welcome to our website". Can you please make a screenshot with the string? Personally I don't use the core string translations anymore, instead I am using the ProField Functional Fields: https://processwire.com/blog/posts/functional-fields/ Because if you change the core string translation, all translations get lost and core string translations are not so nice for editors to edit. Regards, Andreas
  10. Hi @SIERRA, have you tried to declare the namespace at the beginning of your file? <?php namespace ProcessWire; echo __("Test"); I think it should work by adding the namespace. I manually add the namespace on every file, although ProcessWire has a file compiler which should do this automatically. Regards, Andreas
  11. @ryan On topic of the website: There is a YouTube video embedded on the documentation for multi-language fields, which is set to be private since a while: https://processwire.com/docs/multi-language-support/multi-language-fields/ Also the ProcessWire Developer Directory has still the old design and is now broken for years: https://directory.processwire.com/ ? Regards, Andreas
  12. 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
  13. 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
  14. Great website ?
  15. Thank you, I use this field on every website. ?
  16. 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.
  17. 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
  18. 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
  19. 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; });
  20. 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.
  21. 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
  22. 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"?
  23. 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
  24. 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
  25. 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.
×
×
  • Create New...