Jump to content

elabx

Members
  • Posts

    1,479
  • Joined

  • Last visited

  • Days Won

    21

Everything posted by elabx

  1. By any chance, does your POST endpoint end in "/"? If not, try that. It has happened to me on the frontend that POST doesn't work without the ending slash.
  2. elabx

    COVID-19

    I feel I'm going to go crazy in containment in my no balcony flat. On the other hand, I feel profoundly thankful for my working conditions because I have a lot of friends loosing their jobs or freelance income since last week and s**t hasn't even hit the whole fan here in México. Stay safe everyone! Best of luck!
  3. Smarter solution!
  4. If using flexbox you could use the order property to change the order of the columns, I normally add a class to a parent div that wraps both columns. foreach($page->repeater as $i => $item){ //Going to offset the count starting from 1 instead of 0 so I can use modulo operator $i = $i + 1; $class = ""; // If the count is even, such as 2,4,6, etc. if($i%2 == 0){ $class = "invert-order"; } echo "<div class='row {$class}'>"; //output the columns here echo "..."; echo "</div>"; } You should end up with something like this: https://codepen.io/elabx/pen/RwPMaym
  5. Don't know if overkill but you could also a hook on getSelectable()
  6. I like UIKit because it just has all the js thingies bloat that 90% of clients/agencies always want on their sites: slider, slideshow, cover images with <img>, vieport height utilities, etc. What I don't like in the most recent version is that I can't apparently leave out the Js of components I am not using. I've also become very keen on using it with the Less PHP compiler to quickly make edits to the core components (and actually cherry pick the css I want to include, unlike the js) I've recently used bootstrap on some projects and REALLY like their utilities for padding margins and them being also responsive which is where they have a big upper hand to UIkit I feel.
  7. Because I just didn't know you could to that ? Just went through the docs and seems pretty straightforward to do it. Thanks!
  8. Hi! I have a site that uses a lot of disk space but not so much resources in terms of ram and CPU, I've been wondering if it's possible to change the path where the files are saved? So for example, I'd be able to use Digital Ocean's block storage service which enables more space in another volume.
  9. Hi @Jens Martsch - dotnetic Almost a year later and still in the same situation, @joshuag jumped ship on this project and I'm full of client work ?. I know it looks awesome but I it's still far from being good enough for release ? I seriously get the impostor syndrom when I see all the awesome users we all know, releasing amazing modules every now and then with such amazing quality, how do you guys do it?! Need to level up ?
  10. Hi everyone! I need to output different links for A/B testing of two booking engines on a website so I'd like to accomplish is to show each on 50% of the visits, is this reasoning correct? (Those will be measured by a third party js) has anyone does this? Is there a preferred PHP library I should use to accomplish this?
  11. FormBuilder includes an interface to setup forms, view form entries and define several actions to handle forms such as emails, save to pages and convenient hooks for any other kind of action you might want to perform. FormBuilder most likely builds upon the InputfieldForm API to do its validation/processing (though this is just an assumption on my part)
  12. So I'm the looser coding my hook on every site ?
  13. Hi @saschapi! I'm not aware of a module that enables this along with lazyCron but you could try placing something like this under site/ready.php $wire->addHook('LazyCron::everyDay', function($e){ $posts = $this->pages->find('status=unpublished, template=post'); foreach($posts as $post){ if($post->schedule_publish_date <= time()){ $post->of(false); $post->status([]); $post->save(); } } }); The page template you want to publish, would have a schedule_publish_date field, where you can set a publish date and time.
  14. We can't believe it either ?
  15. I'll join the "bliss train" have also updated sites running for years on old versions with no issues, I hope this thread gets mentioned in the ProcessWire weekly haha, people really need to know it's possible to live without waiting for your the site to break.
  16. I've seen there are some issues with MySQL 8, be aware of that: https://github.com/processwire/processwire-issues/issues/973
  17. This had happened to me once when I had set pw's .htaccess to automatically redirect to "www", then I had to update the origin domain name on AWS to "www.domain.com".
  18. Of course, totally understand! What if you have a page select per category, and the field's visibility depends on the Operating System selection. So if selection is "Windows", it will show the field that only contains the options for Windows. So on your template you would have the fields: operating_system windows mac linux Hope I am understanding your problem correctly!
  19. Have you seen: https://modules.processwire.com/modules/process-dynamic-selects/ ? Modules from @kongondo are as pro as it gets :)
  20. Wow! Have just gone through the docs and this looks spectacular, congrats on the awesome work!
  21. Does anyone know why if placed on init.php it works and not on ready??
  22. I recommend managed VPS from LiquidWeb. I've had good experiences with their support. EDIT: Sorry, just read that it's hosting in Germany.
  23. Oh!! Unexpected!
  24. @Beluga Wow spectacular! I'm so sad I don't understand a thing haha. Does anyone know if this software works on premises or does it work like a service?
  25. I'm using it on on multiple Linux servers with Apache configuration. Haven't done any other special updates to make it work, for what I understand if PHP has GD/imagemagick enabled it should all work. Where I have not being able to configure it is on mixed nginx+apache configurations (like on Runcloud) because static assets are delivered by nginx rather than apache, so I just haven't had time to figure out how that would work. (using the htaccess configuration for delivering webp) What issues have you encountered? I'm not sure I understand why CentOS/Plesk wouldn't support it.
×
×
  • Create New...