Jump to content

wbmnfktr

Members
  • Posts

    1,851
  • Joined

  • Last visited

  • Days Won

    44

Everything posted by wbmnfktr

  1. The menu... which part of it? Everything or just parts? I've seen it a lot of times that I have to log out and log in again to have a full translation.
  2. <div uk-lightbox> <?php foreach($page->images as $image): ?> <a href="<?php echo $image->url; ?>" data-alt="<?php echo $image->description; ?>"> <img src="<?php echo $image->width(120)->url; ?>" alt="<?php echo $image->description; ?>"> </a> <?php endforeach; ?> </div> I'd go this way. The first DIV shouldn't be in the foreach() loop. You also want to take a closer look at the different output strategies ProcessWire provides. You are using the delayed output method which can be confusing for beginners. Look at the direct output strategy instead. That's where my example came from. https://processwire.com/docs/front-end/output/
  3. So.... now it works. It was an easy fix. Remove the first/namespace line from your file and it works.
  4. Just installed the module, deleted compiled files, tried {these} {tags} in several places/templates but without success. I haven't read the whole post yet but I guess there is some small detail which is key to this feature.
  5. Windows 10 with Brave (Version 0.62.51 Chromium: 73.0.3683.103 (Official Build) (64-bit)) and Chrome (Version 73.0.3683.103 (Offizieller Build) (64-Bit)). It works in Firefox (66.0.3 (64-Bit)) and EDGE (latest).
  6. Just found this headline... Never mind. ?
  7. I have never used it but you could try to hook into the fields visibility via API in some way. https://processwire.com/docs/fields/dependencies/
  8. I like the concept and the cascade-type of navigation even though it totally confuses sometimes while clicking through the site. But that's probably just me. ? What I'd like to see - which would really help me to find my way through the site - a sitemap and a breadcrumb navigation.
  9. Just a quick thought... Create a date field add it to journal-entry field settings: Input > Default to today's date Output format: whatever you want Change journal-entry template settings to Advanced > List of fields to display in the admin Page List > {date} Create a hook that alters the page name based on the page's date field value right after saving or publishing that page. Add additional conditions to enable custom URLs/page names. Downside would be... you have to count the days somewhere else.
  10. Let's face something I had to deal with lately in a similar way. When it comes to things like payment, customer data and reliable processes that end in a contract of any kind... I need a solution and partner that is reliable and liable. Don't get me wrong here. I think you are good developer with lots of skills and experience but lets say someone uses one of these modules/profiles and there are critical problems with it. Either payments don't work properly in any kind, privacy flaws or whatever. Who is to blame then? Who is in charge? Where would you see yourself and your modules in this? a) Foundation/base for further development b) Full out-of-the-box ready-made solution c) Somewhere in-between I ask because of potential risks on your site. So it's absolutely not against you or your ideas but something I personally would be careful with.
  11. Your ideas sound more like complete site profiles or ready-made applications than modules. ? Which is fine btw. As soon as there are ideas in my mind I'll post them here.
  12. 1. Try rendering the menu without $options. $menu = $modules->get('MarkupMenuBuilder'); echo $menu->render('hauptmenu'); If the markup is fine then something within your $options doesn't work or 2. Look into your menu settings within the builder. There could be some settings too. I just tried it with version 0.2.5 (which seems to be the latest version) and my menu markup is fine.
  13. Good to know. ? If I remember correctly Twitter has had a widget which did exactly that. Maybe you could take a look at their code. https://publish.twitter.com/
  14. Well then... build your own URL shortener. You could build the links to your comments like this: https://yourdomain.tld/shortener/pageID/commentID or https://yourdomain.tld/rdrct/1123/987 Either done with a new template using URL segments that look for a page with given ID and then redirects to the full URL: https://yourdomain.tld/path/to/page/#Comment987 Maybe this is even already possible with Jumplink's wildcard/group feature.
  15. Maybe Facebook looks for the URL's og:url and therefore changes your shared URL to the official URL. <meta property="og:url" content="http://example.com/some-category/post1"/>
  16. Be careful here @Autofahrn and @psy. @VeiJari is talking about init.php and not _init.php. init.php ready.php finished.php Just to keep this in mind. https://processwire.com/blog/posts/processwire-2.6.7-core-updates-and-more/
  17. I'd support the /site/ready.php solution as well. It seems to be the better place for hooks that don't end in a module. But there is another thing. Your hooks is tied to the published state or the action of publishing it. While testing this you have to unplublish the page first to test your hook. Had this testing issue a while back, too. ?
  18. It could be my eyes but... ? in your second example I can't spot any difference.
  19. That's indeed kind of a strange behaviour. What setup do you use? Laragon, XAMP,... It could be interesting to spot the root of what's causing those problems. I had once problems with Laragon while re-using previous used database names. But that's long time gone now. Regarding that setlocale mistery... there will be an upcoming multilang project and I will keep an eye on it. But for now I really can't remember any issues.
  20. Microsoft Edge arrived in its Chromium-flavour version. For those who want to give it a try already. Right now you can download the DEV (weekly updates) and CANARY (daily updates) versions. https://www.microsoftedgeinsider.com/en-us/download/ Windows 10 needed. Windows 8.1/8/7 and macOS will follow soon.
  21. Quick YouTube test... ProcessWire 3.0.123 VideoOrSocialPostEmbed 1.2.1 So... you might want to check your setup and settings.
  22. First of all I'd limit image size here. You can define max width/height or even pixels in the image field. The image field takes care of that for newly added images. That's sounds like a very broad range of variations. Are they really necessary? If you don't build something like an image library 1920px should be more than enough. Using the code @LostKobrakai mentioned before you will upload one (1) image and ProcessWire will take care of everything else. Or you could use Croppable Image 3 that takes care of some things or everything and modify the img/srcset code accordingly to match the module syntax. And to cite @LostKobrakai again: ?
  23. No... it always depends on the project and website. But there are a few things I don't want to miss. Those are: SSL/https with Let's encrypt SSD webspace because it's faster Admin panels like cPanel are nice but not necessary SFTP/SSH is a benefit Cron of any flavour is highly appreciated GDPR compliance in terms of data-processing-agreements (or however they are called) A good reputation (4.5+ ratings) A good website with all relevant details (Imprint, Privacy, GDPR) A good website that's not powered by a WordPress theme More than 5 years in business Servers in my home country Free or local support hotlines + the things mentioned above Yes... It's more about the company than the webhosting itself but these things are as important as everything else. Maybe even more. Nope... never did anything like that with a ProcessWire project. FileZilla is S/FTP so about 99% of all webhosting companies should fit here. ? I prefer Site Profile Exporter as I create a full copy of everything with only a few clicks. I know others here that prefer Duplicator. So... try everything and decide which way to go. Regarding sync-scripts of any kind... not mine at all. As said before... it really depends on your needs. I never used webp support in a live project so far and therefore never had the need of special modules. But yes... put it on your checklist and later on ask hosting companies if they support those features.
  24. First part... A quick test (ProcessWire 3.0.123 and FI 1.0.0) where I exactly did what you described and... it worked as expected. Added FI language pack to default Logout / Login Admin in finnisch Deleted all language files in default Logout / Login Admin in english again There were no mixed translations in the backend at all. Please try to log out and log in again. That sometimes helps with language hiccups. Or even clear browser cache including cookies / try another browser. Second part... Have had the same feelings about language handling at the beginning. But after ~20 multi-lang installations and lots of hours playing around with it my feelings changed. Works ~95% of the time I need it. Never had any real issues with it. WordPress: total fail Drupal: maybe it changed but a few years back it was quite painful Typo3: never seen a multilanguage setup that worked well Textpattern: mh... nope Silverstripe: can't really remember if it worked that well To be honest... I'm super biased in terms of ProcessWire as it gave me so much options and kind of freedom in the past to get almost everything done right from the start. But nonetheless I can't remember any real issues with multi-language setups, neither in front-end, nor in the backend.
×
×
  • Create New...