Jump to content

benbyf

Members
  • Posts

    796
  • Joined

  • Last visited

  • Days Won

    6

Posts posted by benbyf

  1. not familiar with module building myself but gridmanager type thing looks like some of the higher end drupal plugins some of my clients are used too and one of the reasons they dont go with processwire (to my annoyance).

    Think your right though @teppo most of what I was thinking can be done with ProField Table, but maybe grid manager and table field should get together sometime for a drink ;)

    • Like 1
  2. It fragments your development doing it eith detection. Check out mobile first. It's 80% of the time the best way, and requires you to think about those low bandwidth and small screens first and enhance up to desktop.

    Also use sass or less it'll simply make your life easy, and the aiom module for process wire is ace

    • Like 1
  3. imgs being created is the issue. So for every width(), height(), size(), function used in a template or in the editor creates an image, and other modules might make more. Change that image (say upload a different one) and now you have maybe one image and 3 variations that now dont need to be there in files as it isn't used anywhere in pw and therefore within the DB.

    Be nice to have a module that reads /files and compares against anything in pw and deletes if you want it too.

  4. Hi,

    Having ploblems with this search page code.

    I'm trying to get all images with tagged with the search query, which works currently. Then get a url and add <a> wrapping the image to a page that references that image in its image_select field - doesnt work.

    if($input->get->q) {
        $q = $sanitizer->selectorValue($input->get->q);
        $input->whitelist('q', $q);
    }
    
    $matches = $pages->find("imageTags.title%=$q, limit=20");
    
    if(count($matches)) {
        $out .= "<ul class='grid-list'>";
        foreach($matches as $m){
            // $name = $m->image->name;
            // $out = $name;
            // $mWork = $pages->find("image_select=$name, limit=1");
            // var_dump($mWork);
            $out .= "<li>";
            // $out .= "<a class='' href='{$mWork->url}'>";
    
            $image = $m->image;
            $image = $image->width(450);
            if($image) $out .= "<img src='$image->url'>";
            // echo "</a>";
            echo "</li>";
        }
        $out .= "</ul>";
    }
    
  5. Absolutely LOVE the mircopinna site. So colorful! It scales beautifully on mobile!

    I like how you are hosting these as subdomains. Which module are you using for this?

    Thanks! :)

    Modules: all use AIOM, Images with cropping, Batcher, Admin Save Actions, Export Site Profile, Page Delete, Redirects, and Template Notes.

    Sam's also uses: Select Multiple Transfer, Page List Image Label, Images Manager.

    I've got into the habit of running peoples new site as a subdomain, then putting it live through adding an A record to their domain, and if it's a bigger client I'll take a copy of the site and have live and dev for future alterations.

    • Like 2
  6. THANKS!

    Tried it and seem to be getting strange results, sometimes the images appear and sometimes not - bottom of this page: http://www.benbyford.com/about/

    Is there a problem with Instagram connection or caching or something?

    <?php
        $feed = $modules->get('InstagramFeed')->getRecentMedia();
        foreach ($feed as $image): ?>
            <a href="<?=$image['link']; ?>" class="instagram-item">
                <img src="<?=$image['images']['thumbnail']['url']; ?>" alt="">
            </a>
            <div class="hidden">
            </div>
        <?php endforeach; ?>
    
  7. thanks for posting, not seen this.

    First look, it sounds interesting but not really sure what they're trying to solve with it... also the first quote is worrying as it is mianly focused on advertising :(

    • Like 1
  8. Hi gang,

    Had a client request for very flexible layouts - imagine a page that you can adhocly add and remove widgets then add content to them. What strategies do people have for this type of thing.

    Usually I would create a set of templates, and add the fields to those templates. Or on a more complex site add some pages as widgets to a page. But to have a set of template "elements" and then choose them is beyond me.

  9. I should really do local and then git to live buuuuuuut, on my solo projects I:

    - work on a staging server (same type of server as live)

    - export and install on live

    - keep the staging version for template edits that can be copied across keeping the templates in sync but not the content

  10. Yeah.

    It seems that RWD vs AWD is like Audi vs BMW, a is all a matter of taste. 

    Anyway, from PW perspective how can I call the right template(once I had identified the device)?

    Disagree here, they're not the same (a car) but different, they're a motorbike and a car.

    one is a total nightmare and the other is what everyone has decided to do after failing at AWD. RWD is the only way forward without spending all your life testing on each new device.

    Sorry quite a strong opinion on this one through experience

  11. Got a PW install working on ubunto 14.04 with serverpilot.io but for some reason the admin works but the site is blank - http://bbstarter.nicegrp.com/ and http://bbstarter.nicegrp.com/admin/

    currently has the htaccess which nginx is "apparently" got a proxy for. I played with the nginx conf site files to see if i could fix it but havent been able to as far. aynone had similar issues?

    UPDATE: sorry, hadn't had some modules installed, so working now

  12. We use DigitalOcean with a ServerPilot managed layer so you can easily add additional users and apps. Works great and we never had any outage or unexpected downtime and support from ServerPilot is really good.

    Might look into using that solution soon - failing that, I might start getting more serious about sysadmin and install my own distru on a VPS :/

    let you know either way

    • Like 1
  13. Hi, Sure this gets asked alot but I was wondering if people have any recommended services that they run PW on. Please provide your recommendations for:

    Shared

    VPS

    Self hosted servers

    PaaS / SaaS

    I used to recommended Lcn.com but they no longer have a VPS which satisfies the PW minimum requirements :( so I cant use all the new goodness in the latest releases.

×
×
  • Create New...