Jump to content

ngrmm

Members
  • Posts

    435
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by ngrmm

  1. I've no idea how to tweak that. But you could also create a custom backend page, see here.
  2. @rushy go here. There are many ways. Maybe one fits you
  3. @leode you also edited your config.php right?
  4. @DrQuincy Matrix repeaters are pages themselves. They are different than usual fields. First you create a matrix type and add content. Then save the matrix page and then you can save your actual page. Each time you add a matrix type a new page is created. You can find these pages in the page tree under admin
  5. @Purple your question is more related to php as to processwire. You better search in stackoverflow for these kind of question. Anyway, you could use a for loop. This code gives you the first images of the first five category children. for ($i = 0; $i <= 4; $i++) { foreach($categories as $category) { $image = $category->children->eq($i)->images->first; } }
  6. I've one page in production which has similar bizarre issue. I'm not able to view an unpublished page as a superuser. But this happens only in chrome. No problem safari or firefox. I gave up to find out why ? Which browser are you using? Please let me know if you have solved this issue Found this here but I'm a noob in host server settings
  7. @maximus actually there is already ratio inside the pageimage class see here: https://processwire.com/api/ref/pageimage/ And you could also solve this without generating new images. You could set a square container and put the orginal img inside it. Then use CSS to get what you want.
  8. This is strange. Are those category pages actual pages in the frontend? Or are they just helper page to store data and they do not exist as pages in the frontend? You could reset the module cache to make sure, it's not cache related. Do those pages/templates have any special settings? Any non defaults? content-type? url segments?
  9. @protro I'm not familiar with rockfrontend. As you can see in a browser console your final code loads several files (uikit.min.js, uikit-icons.min.js, main.js, main.css) before loading your oswald.css file with the @font-face rules. The browser reads your oswald.css file and then sends a request to download webfonts. So two things delay the webfont download. The order of your js and css files and also the chaining via the font-face rule inside a css file. Most of the time it helps just to change the order and to set the css file at the first place. And as I said before the fastest way would be to inline those @font-face rules. If inlining does not help also, you could also give the browser a hint to preload webfonts like this: <link rel="preload" href="/site/templates/styles/whereever_your_fonts_are/webfont.woff2" as="font" type="font/woff2"> <!-- or for crossorigin <link rel="preload" href="https://www.domain.com/webfont.woff2" as="font" type="font/woff2" crossorigin> -->
  10. @protro you could try to avoid FOUC by loading you oswald.css earlier or even one step durther and inlining the webfont css part into your head part
  11. @kaz that is the way to go Or using embed option D and writing custom code
  12. just add a dot before the folder name. PW will ignore the module. Then install the new Module
  13. @V7dev in case you wonder, why you do not see the repater in you dump. Repeaters are pages themself linked to your actual page Also see here for more options to get the repeater items:
  14. @V7dev you just need a loop $items = $pages->find("template=event_day, event_schedule.speakers={$page->id}"); foreach($items as $item) { foreach($item->event_schedule as $repeater_item) { echo $repeater_item->event_start_date; } }
  15. @Tyssen I use this module which builds on this (yours). And it has template select fields on the module edit page. Maybe the old module has also these fields.
  16. @cpx3 please triple check everything. It works for me. Which embed version are you using?
  17. @cpx3 you could select the html5 native date field as your type and choos today as your default value. Your minimum values can be set via a hook $wire->addHookBefore('FormBuilderProcessor::renderReady', function($event) { $form = $event->arguments(0); if($form->name != 'your-form-name') return; $inputfield_1 = $form->getChildByName('your_date_field_1'); $inputfield_2 = $form->getChildByName('your_date_field_2'); if($inputfield_1) $inputfield_1->attr('min', date('Y-m-d')); if($inputfield_2) $inputfield_2->attr('min', date('Y-m-d', strtotime(' +1 day'))); });
  18. 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.
  19. @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?
  20. @ManuelBridwell this a thread from the ProMailer forum. You need to buy ProMailer to have access to that forum.
  21. 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
  22. 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:
  23. @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}'>";
  24. 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.
×
×
  • Create New...