Jump to content

maxf5

Members
  • Content Count

    142
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by maxf5

  1. hey @abdus that's a great hint! I installed LazyCron and made the /site/ready.php <?php namespace ProcessWire; wire()->addHookAfter('LazyCron::every30Seconds', function (HookEvent $e) { $test = $e->pages->get('id=1'); $test->setAndSave('footerhide',1); $test->setAndSave('meta_desc','123'); }); .. for testing and nothing happens. In tracy debugger ($test->setAndSave('meta_desc','123');) it works fine..
  2. Hey guys, i have some sort of events/campaigns which have a lifespan. To deactivate them i made a checkbox-field called closed and i have to deactivate them manually. I would like to put two fields in the template, startdate and enddate, which activate/deactivate that checkbox field automatically. Dou you have any idea how to bring that on the run?
  3. Okay, my dev website was protected via htaccess. Therefore it couldn't render the images
  4. weird, i deinstalled the core module and installed it again. Now it works. Thanks nevertheless!
  5. if($item->hasChildren() && $maxDepth) { $out .= '<div class="w3-block w3-padding w3-white w3-left-align accordion">'; $out .= $item->title; $out .= ' <i class="fa fa-caret-down"></i></div>'; if ( $item->id == wire('page')->id ) { $out .= '<div class="w3-bar-block w3-padding-large w3-medium">'; } else { $out .= '<div class="w3-bar-block w3-hide w3-padding-large w3-medium">'; } $out .= renderNavTree($item->children, $maxDepth-1); $out .= '</div>'; } else { // markup for the link $out .= "<a href='$item->url' class='w3-bar-item w3-button w3-opacity-min'>$item->title</a>"; } Quick & Dirty. Can you try this one?
  6. didn't work as expected. how can i fix this?
  7. When you hit refresh (f5) it really has a overflow-y bar on the form (1 here) for some milliseconds. Do you mean that one or the normal bar (2)?
  8. let's see how rainy the weekend will be and i'll do this version of the admin theme.
  9. I'd love this: - remove masthead - sidebar (left) always visible - change icons to uikit3 icons - breadcrumb on top (with search on the right which i forgot here) - some design fixes Some live changes:
  10. @justb3a, it's working now with the update to 1.0.5, huge thanks for your time and patience!
  11. Any ideas? How do you set up checkboxes?
  12. Uff, after a few weeks i have a problem with the checkboxes in the form. They 're not required, but the user can't send the form when not checked. Anyone with same problems? Iam using two different forms on my website (different pages) which haven't the same fields, i set the fields for the particular form with: $options = array( 'allFields' => 'sfc_tel,scf_fax,scf_email,scf_subject,scf_message,scf_haendlerwerden', .. ); scf_haendlerwerden is a checkbox, not-required. Is that where the error comes from, selecting the fields via $options["allFields"] ? ProcessWire 3.0.75
  13. Hi @Mike Rockett, i knew that "trick". But i don't want my default language urls (german/de) look like: sample.de/de/contact, or is there any option to remove that url segment of the default language in the url when having a default language name in "Home > Settings"? EDIT: Ah forget it, i just updated the module to version 0.20 and saw "ISO code for default language"
  14. Hi @Wanze, files are there on the ftp in /site/assets/files/{pageid} - also the thumbs are generated correctly. 2017-09-15 10:51:35 xxx_usr http://xxx.de/?pages2pdf=1048 IMagick Resized: captiva_sharkoon_0127-big.jpg => captiva_sharkoon_0127-big.220x220.jpg (220x220) 0.2990 secs 953844 => 14251 bytes (quality=90, sharpening=soft) 2017-09-15 10:51:35 xxx_usr http://xxx.de/?pages2pdf=1048 IMagick Resized: captiva_sharkoon_58-big.jpg => captiva_sharkoon_58-big.220x220.jpg (220x220) 0.2852 secs 814741 => 13240 bytes (quality=90, sharpening=soft) 2017-09-15 10:51:35 xxx_usr http://xxx.de/?pages2pdf=1048 IMagick Resized: captiva_sharkoon_0083-big.jpg => captiva_sharkoon_0083-big.220x220.jpg (220x220) 0.3268 secs 1532518 => 8103 bytes (quality=90, sharpening=soft) 2017-09-15 10:51:36 xxx_usr http://xxx.de/?pages2pdf=1048 IMagick Resized: captiva_sharkoon_0103-big.jpg => captiva_sharkoon_0103-big.220x220.jpg (220x220) 0.3187 secs 2139397 => 31538 bytes (quality=90, sharpening=soft) using ProcessWire 3.0.73, any known bugs here?
  15. Hi bernhard, thank you for the hint. The image field is set as single element. <td colspan="1" style="padding:15px"> <img src="<?= $page->navimg->url; ?>" width="220"/> <p><?= $page->navimg->url ?></p> </td> something between .. <?php if ($page->images->count > 0) : ?> <table> <tr> <?php $gallery = $page->images; $gallery = $gallery->slice(0,4); foreach ($gallery as $image): ?> <td> <img src="<?= $image->size(200, 200)->url ?>" width="200" height="200"/> </td> <?php endforeach; ?> </tr> </table> <?php endif; ?> template part: <?php $optionspdf = array( 'title' => 'Datenblatt', 'markup' => '<a class="uk-button gaming" href="{url}" download>{title}</a>', 'pageFormat' => 'A4' ); echo $modules->get('Pages2Pdf')->render($optionspdf); ?> result:
  16. Also having a problem with images.. On some pages the PDF shows the image, on other pages the image is missing. <img src="<?= $page->navimg->url ?>" width="220"/>
  17. Maybe @ryan can "share jobs" to the community much more that we can help. I think these points are outdated and had to be done first: a) default admin theme - it will pay more attention to people who are making the first steps into PW b) new branding/ci for PW. these identity now with the skyscrapers on facebook is looking so 90ties.. c) like @apeisa said, a new stylish/modern PW website. A powerful start-page showing the features. ( of course also updated docs, tuts,..) thinking of a clean design like pagekit ( https://pagekit.com )
  18. Great idea, looking forward to it :)
  19. Maybe one can make optional module settings for this problem. Listing every language used on the website and a field for the ISO and a checkbox. When checked it renders the "custom" ISO for this language.
  20. Hi Mike, wonderful module for languages and image integration! But what can i do to fix this case? <url> <loc>http://www.xxx.de/</loc> <lastmod>2017-09-10T00:03:12+02:00</lastmod> <xhtml:link rel="alternate" hreflang="home" href="http://www.xxx.de/"/> <xhtml:link rel="alternate" hreflang="en" href="http://www.xxx.de/en/"/> </url>
  21. You need a bit of coding experience but we can help you.
  22. $latest = $users->find('roles=anzeigen-anbieter, sort=-customer_number, limit=1'); $newnumber = $latest->customer_number + 1; $user = new User(); $user->of(false); $user->name = "Paul"; $user->pass = "max123"; $user->email = $email; $user->customer_number = $newnumber; $user->addRole("anzeigen-anbieter"); $user->save();
  23. Oh sorry my fault.. my table modules in the db had no structure and all the new modules could'nt get an ID.. sorry for that. Now it works It happened when i repaired the database:
  24. @abdus sorry, doesn't help in this case.. It only happens with installed modules. Could there be issues with following? $config->dbCache = true; $config->sessionChallenge = true; $config->sessionFingerprint = true;
×
×
  • Create New...