Jump to content

maxf5

Members
  • Content Count

    142
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by maxf5

  1. hey guys, is there a way to prevent sections from caching? I am using a frontend login and when the user is logged in they can see extra content compared to the guest. I am using built-in template cache for certain templates and markup-cache for certain parts. Has the ProCache module any options to do that? The emergency solution is maybe turning off template cache and only use markup-cache except this dynamic content. many thanks!
  2. Hey @suntrop, thanks for the hint. I will figure that out. And thanks @SamC, i removed the loaders except on the startpage and news page (ajax). It makes it also feel much faster. Yes, it sure was with the kind of pagebuilder inside, functions for product rendering (when some products should be mentioned in news, events, etc.), even made just3ba's nice simple contact form working in that page-builder, Lazy Crons for event begin and closing, connect fields for driver <-> products, etc.. I have a dozen of templates and fields as you can imagine. I am currently working on the frontend login for the dealers where they can find advertising material. Depending on what dealer is logged in, they only can see that material which is assigned to him via role-management. I can make a new video soon where i can show more stuff if you re interested in managing things in the backend. God bless processwire
  3. -- FIXED after reinstall of AdminThemeUiKit-- Anyone else has this problem?
  4. This is what i said a while ago, but i could'nt find any time for it to realise until now: 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
  5. Cool sites, Ben. Here is a little bug on bigger screens:
  6. Thank you for your great feedbacks! This would be interesting to know from the visitor / not-designer - view. I will keep it until i have some further feedbacks / user experience. Thank you @wbmnfktr and @SamC ! Indeed, it would be very interesting to see more backend-developing here instead the usual bootstrap frontends
  7. Here it is. The relaunch for Captiva. High Quality Power since 1995! CAPTIVA GmbH was founded in 1995 and began selling graphics cards under its own CAPTIVA® label. Meanwhile, their portfolio includes modern Tablet PCs in a large selection with the right accessories, individually configurable PCs with extremely high quality standards and external hard drives. Since 2007, CAPTIVA® has been manufacturing complete PCs in the so-called built-to-order (BTO) process. Captiva builds your new PC exactly according to your requirements and wishes. During the development i felt in love with processwire's magic day for day. I was so glad that i could use processwire for this site instead of typo3 or others which probably would have taken the triple time to develop. Much more products will be added in the next time. Also the english translation will follow and a dealer-login for support, service and downloads. With that i hope to improve the page builder more and more. Some of the highlights of the page is the radius search for the dealers which are offering captiva products. All i had was a simple excel list with names, adresses, phone numbers, emails, websites, etc. I converted this .csv to a .json and built a script which imports all dealers as new page in processwire. The adress field is saved in the map marker module from Ryan. With that i also get the latitude and longitude for the radius search. Some make-life-easiers / extras: + a "page-builder" created with the PageTable field (see video): options to add images, text + images, google map, form, the radius search, gallery, parallax section, product listing (made with page reference), technic details (this will render all technical informations from the product, made with page reference and repeaters on the product), grid width options made with the range slider (for desktop, tablet and mobile), options to set a full width container or boxed, margins, borders and so on + central management of drivers with connected page fields for the single driver page and the product page + connected page field for gamecoupons and products + events and promotions can be managed with start- and enddate, a lazy cron will do the rest + widgets on category and product sites which appear randomly + try the blue model switcher on the start-page, it changes the video in the background, the newest products and the slider on the bottom navigation (on a subpage it redirects to the category) + news listing made with ajax + theme switcher for every site (dark / clean) + prepared for multi-language + much more.. feel free to ask Some insights: Modules used: Admin Custom Files AdminOnSteroids Uikit Clear Cache Admin Connect Page Fields Cronjob Database Backup Email Obfuscation (EMO) Map Marker Range Slider URL (Multi-language) Image Extra Map Markup (Google Maps) Markup Simple Navigation Sitemap Pages2Pdf Database Backups Google Analytics Jumplinks Upgrades Simple Contact Form Video embed for YouTube/Vimeo Tracy Debugger Frontend: Grunt tasks for js / sass compilation / minifaction: grunt-sass, grunt-uglify, grunt-contrib-cssmin bourbon.io mixins for sass (which i love next to self-made mixins) uikit 2 (which bothers me a bit because uikit 3 was in early beta when i started the site) owl carousel 2 awesomplete noUiSlider awesomplete jQuery Lazy picturefill
  8. I am using owl carousel since many years and it never disappointed me. You can build some crazy shit with it. slick is great, too. some requirements for me are: lazy load for background-images and <img>, events, multiple synced sliders, smooth animations, touch & drag friendly
  9. CLOSED new server from the client doesnt have imagemagick.
  10. Hi guys, i just wanted to move a site from dev to live and get the following error: On the dev website it all worked fine. What could be the reason, new server enviroment?
  11. thats fine i think! didn't had in mind ->add works for arrays
  12. Hm, okay. Maybe then make two arrays and merge them / prepend the array with checkboxes? <?php $withcheckbox = $page->children("checkboxname=1"); $others = $page->children("checkboxname=0, sort=-chiffre"); $all = $withcheckbox->import($others); foreach($all as $a) { .. ?>
  13. becoming better and better! Do you have any experience how long it take to upgrade a bigger website from uikit 2 to uikit3? (i know the migration tool)
  14. maxf5

    video upload

    Create a new field: type: file allowed extensions: mp4 webm ogg
  15. how can i get a cache when it's not even generated yet? So, that's my idea for a web-crawler/robot which generates the cache for you by visiting all pages.
  16. found a function which could be made with a cronjob or this library which could be used for a module http://phpcrawl.cuab.de function crawl_page($url, $depth = 5) { static $seen = array(); if (isset($seen[$url]) || $depth === 0) { return; } $seen[$url] = true; $dom = new DOMDocument('1.0'); @$dom->loadHTMLFile($url); $anchors = $dom->getElementsByTagName('a'); foreach ($anchors as $element) { $href = $element->getAttribute('href'); if (0 !== strpos($href, 'http')) { $path = '/' . ltrim($href, '/'); if (extension_loaded('http')) { $href = http_build_url($url, array('path' => $path)); } else { $parts = parse_url($url); $href = $parts['scheme'] . '://'; if (isset($parts['user']) && isset($parts['pass'])) { $href .= $parts['user'] . ':' . $parts['pass'] . '@'; } $href .= $parts['host']; if (isset($parts['port'])) { $href .= ':' . $parts['port']; } $href .= $path; } } crawl_page($href, $depth - 1); } echo "URL:",$url,PHP_EOL,"CONTENT:",PHP_EOL,$dom->saveHTML(),PHP_EOL,PHP_EOL; } crawl_page($pages->get(1)->httpUrl, 2);
  17. Hey guys, i am using WireCache and template cache. Wondering if there is some kind of web crawler already for processwire which is crawling all your site to warm up the cache? (like in Shopware eCommerce you can warm up your cache with a crawler via cronjob, etc.) Would be a nice feature
  18. take the seo_title when it isn't empty, else take the page title: <?php $pagetitle = $page->seo_title ?: $page->title; ?> <title><?= $pagetitle ?></title> You could do the same with the meta description. Take the seo_description if it isn't empty, else make a shortened version of your bodytext limited 156 characters.
  19. awesome project! an additional "newsletter subscribe" addon for the frontend would be awesome and a listing for the subscribers in the backend. So alternatively you can send the newsletter to these recipients instead of a txt file.
  20. Great tip! it is also possible to add new tabs? Like a tab called SEO where i put my seo fields.
  21. know that feeling Maybe it isn't bad to add or modify: $openables = $e->pages->find("closed=1, enddate>now"); foreach ($openables as $p) $p->setAndSave('closed', 0); .. when the moderator don't fill in any startdate
  22. Ok, the Lazy.Cron.cache was guilty it's working fine now, thank you @abdus! you just have to put: enddate<now for the closables --- startdate<now, enddate>now for the openables wire()->addHookAfter('LazyCron::every30Minutes', function (HookEvent $e) { $closables = $e->pages->find("closed=0, enddate<now"); foreach ($closables as $p) $p->setAndSave('closed', 1); $openables = $e->pages->find("closed=1, startdate<now, enddate>now"); foreach ($openables as $p) $p->setAndSave('closed', 0); });
×
×
  • Create New...