Jump to:

22997 Posts in 11853 Topics by 2828 members

General Questions

SilverStripe Forums » General Questions » Simple shop gallery

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 423 Views
  • Lemonie
    Avatar
    Community Member
    70 Posts

    Simple shop gallery Link to this post

    I am creating a page on the website as a shop. I installed the Silverstripe shop but didn't like it. We will only be selling about 3 - 5 items so have just created a page and have added paypal mini cart.

    I want to have a larger image with a few thumbnails underneath that when clicked open where the larger image was. All the options I have tried have the html stripped.

    Is there a module that does this? This is a larger example of what I would like to do:

    http://www.extremestudio.ro/blog/?p=4577

  • Mrfixer
    Avatar
    Community Member
    49 Posts

    Re: Simple shop gallery Link to this post

    nearest gallery i can think of that looks like that (depends on how its setup of course) is Galleria, im not 100% sure but i think Uncle Cheese added it to a gallery module, try running a forum search for "Galleria"

  • Webdoc
    Avatar
    Community Member
    329 Posts

    Re: Simple shop gallery Link to this post

    its possible first u need to make a gallery with dataobject manager for product.php and then is the theme part and thats all nothing hard.

    it means u can use the module shop and code it a little.

  • swaiba
    Avatar
    Forum Moderator
    1769 Posts

    Re: Simple shop gallery Link to this post

    Hi,

    We use pirobox here (same thing really) and it is very easy... this is mainly to avoid using the DOM, but we still use Uploadify....

    Add pirobox (in the require page init)...

    Requirements::css('DIRECTORY/pirobox/style.css');
    Requirements::javascript('DIRECTORY/pirobox/pirobox.min.js');
    Requirements::javascript('DIRECTORY/pirobox/pirobox.config.js');

    then when you are placing your images on the page in your template do something like this...

    <% if MyImages %>
       <p>
          <% control MyImages %>
             <a href="$URL" title=" " class="pirobox_gall">
                <% control SetWidth(120) %>
                   $Tag
                <% end_control %>
             </a>
          <% end_control %>
       </p>
    <% end_if %>

    Alternatively I've been looking to try out https://github.com/codem/DisplayAnything as this looks like a good stand alone image gallery

    423 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.