Jump to content

benbyf

Members
  • Posts

    796
  • Joined

  • Last visited

  • Days Won

    6

Posts posted by benbyf

  1. item template

    include("./head.inc");
    
    echo $page->body;
    echo $page->sc_price . "\n";
    echo $page->sc_qty . "\n";
    
    $modules->get("ShoppingCart")->renderAddToCart();
    
    $modules->get('ShoppingCart')->getNumberOfItems();
    $modules->get("ShoppingCart")->renderCart();
    
    include("./foot.inc");
    

    Gives me the price and qty but nothing else

  2. Wondering if anyone has made a way of displaying filed content of pages on the page list (or another admin page / sidebar).

    For example:

    • an indication of new page comments displayed on the page list.
    • a count of the number of photos for each page that hows photos.

    Mock up:

    post-73-0-15652400-1402832870_thumb.jpg

  3. Hi, I'm trying to combine two find() arrays in a random order but currently can only make it give me back the same order each time. here's what im working with:

    $works = $pages->find('template=work');
        $articles = $pages->find('template=article');
        $works->prepend($articles);
        $randWorks = $works->getRandom(count($works));
    
        foreach($randWorks as $child) {
          $class = $child === $page->rootParent ? " class='active'" : '';
          echo "<a$class href='{$child->url}'>{$child->title}</a>";
        }
  4. great, ill check out the add functions in isotope.js sounds like a great solution.

    not sure i like the picturefill polyfill, still abit clunky in my mind. would love to hear about any server side solutions.

  5. Thanks for your input.

    To behonest that site was a fixer upper after another dev stop returning my friends calls so I helped make the site work and look ok.

    • In terms of retina, as far as i can see there still is no good way to do this, you have any experience with any good options? or we still waiting on browser makers?
    • Lazy loading messes with the isotope.js otherwise I would have done it... also i would have shown you something too. :/

    Thanks for your feedback!

  6. Thanks so much.

    I agree with the text length and will amend.

    The nav flyouts to the left are an experiment so its good you found them. they represent every page (or subpage) on the site so can be used as a sort of serendity nav. but trying to look out how to make them intiative and not get in the way too much.

    • Like 1
  7. Hi!

    Is there any way when a parents children are sorted by the user to enable a new child to be listed at the top of the list?

    my site has loads of child pages so it's cumbersome to add a new child and move it when it is listed at the end of the list each time, instead of the top (the same way they delivered on the site reading from the top of the list).

    Cheers,

×
×
  • Create New...