Jump to content

ngrmm

Members
  • Posts

    480
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by ngrmm

  1. Actually I prefer custom sizes or labels instead of numeric sizes. It far more intuitive to have small/medium/large instead of 3/12, 4/12 or 6/12 for users. In one of my projects I used numbers in combination with ion range slider (see screenshot). I don't like it anymore! After that almost all of the projects I tried to avoid column layout options via backend. Just here and there a „smaller“ or “bigger“ checkbox.
  2. @BrendonKoz could you elaborate more on the difficulties? And why having a 12 grid system and preset 2/3/4/6 column sizes, which you could assign to the matrix items, does not fit you?
  3. @ManuelBridwell this a thread from the ProMailer forum. You need to buy ProMailer to have access to that forum.
  4. go here: https://processwire.com/talk/clients/purchases/ And look for ProMailer. You should see somthing llike There is a pending renewal invoice for this product. Pay Now If not, just contact Ryan and tell him, you would like to a renewal If the ProMailer key does not belong to you, you have to buy ProMailer first
  5. I think you need to extend your annual subscription and this automatically gives you access to the promailer-forum And yes it is possible to have multiple lists. see here:
  6. @kaz you could store your class in a variable before echo // storing class in a variable $class = ($page->check == 1) ? "checkedClass" : "defaultClass"; // // or emtpy by default // $class = ($page->check == 1) ) "checkedClass" : ""; echo "<img class='$class' src='{$page->image->url}'>";
  7. hi @Rob0610 processwire is a CMS. If you have a html document and want to publish it, just upload it to a webserver. You don't need processwire for that.
  8. I guess you use numbers in you url segments right? So this would result into $images->2->get('foo|bar')? Maybe I'm wrong, but I don't think this syntax is correct.
  9. @biberI don't get what you are doing with the $seg1 variable. What are you trying to access with $images->$seg1 ? And I doubt that the pageimage/s Classes have a get method that accepts two fieldnames. Let's say you want the value of the description field from your third image. You could access it this way: $images = $page->images; echo $images->eq(2)->description;
  10. I'm not sure where $images or $seg is defined in your code. Anyway, you can access images with key inside loops like this: foreach ($page->images->getValues() as $i => $image) { echo "<img class='number_$i' src='$image->url'>"; } // $page->images is an object // $page->images->getValues() is an array You can also access an image without looping $firstImage = $page->images->eq(0); // first image $thirdImage = $page->images->eq(2); // third image If name_1 isn't an extra image field, then you should access it via $page->name_1.
  11. @biber have a look here Since 3.0.142 there is a core option to have additional custom fields for image and file fields I guess they are stored separately.
  12. @joe_gi would recommend to let user add and sort pages manually. And add an extra checkbox or option/page field in which sorting options are available. Then you would use a hook to sort them by the option used after save. Your option field should have an empty option as default and should be resetted after save. I'm sure there are also ways to do that via JS in the backend.
  13. Hi @SIERRA, I guess you have to find a solution for this via hooks. May be you can use https://processwire.com/api/ref/inputfield/get-errors/ or other error methos. Take your time and have a look at the API docs And please avoid duplicate questions, thanks!
  14. @SIERRA i think repeater items are actually pages. They are somewhere down the site tree branch of the admin page. So you could change the select field in your Test2 Repeater into a page reference field first Then you would use a hook to make those pages be selectable. Maybe it's even possible through the page reference, look here:
  15. So when you create another page (lets call it homepage_new) with the same template as your homepage template, it works and the body of homepage_new is editable in frontend?
  16. @monollonom nice work! Do you use PWs $config->ajax in the templates or is the content switching done completely with custom js?
  17. With a js frontend solution your php code would output all posts and you would have a js pagination. Just try the url segment way. If everything is working, you make it ajax driven Another similar option would be HTMX
  18. ok. got it ProcessWire let's you do whatever you want on frontend. So you have to come up with you preferred solution. There are many solution for your goal. Two of them would be to A: do the filtering with javascript (custom js or scripts like mixitup.js) B: or using processwire url segments and a link list (your dropdown) to those url segments
  19. @Boost could you elaborate more on what you mean by filter. If you want a url like domain.com/blog/category_a/ to show all blog children pages with a page reference field value of category_a, then url segments are perfect for this. URL segments are a good tool if you cant use your page tree structure
  20. @JonI would recommend to rule out the sources of error. Create another page with the same template and test it there. Create another template with the exact same code as your home template. Try different browsers (I know it sounds silly), but you never know.
  21. @Jon Do you have any Errors or warning in the browser console? Or any hints in the PW Logs?
  22. @canwild I think the way to go is to have multiple selectors // selectors $selector_title = "title%=$q"; $selector_summary = "summary%=$q"; // do the search // make matches unique $matches_summary->removeItems($matches_title); $matches_title->import($matches_summary);
  23. @Boost how are those H2 headings created? Through a textarea field or through custom textfield inside a repeater?
  24. @joe_g Please check if you have any typing errors. I also have a repeater matrix and it works for me. foreach ($wire->languages as $lang) { $page->set("status$lang", 1); } $page->save(); 1. You could check if status$lang is 1 2. If there is no translation, PW automatically views the default content. But you could also check for translations an do a redirect
×
×
  • Create New...