Jump to:

3439 Posts in 1028 Topics by 869 members

Template Questions

SilverStripe Forums » Template Questions » View control by mulitple query stings.

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

Page: 1
Go to End
Author Topic: 337 Views
  • Ditinn
    Avatar
    Community Member
    1 Post

    View control by mulitple query stings. Link to this post

    Hey everyone,

    I should preface this by saying I'm a self taught amateur web developer so undoubtedly their will be some questions that may seem quite obvious to others - your help would be very appreciated.

    I'm working on a folio site for my work, a mixture of projects from building design (I'm an architect by trade) and other pieces of graphic work etc.

    I'm trying to achieve something similar to the showcase page here. http://www.silverstripe.org/community-showcase/

    In particular the way the display is controlled in two ways. 'Sort by' and 'View. (see attached screen grab). I have a basic understanding of how to pass a url query string back and use and 'If' statement to then manipulate the layout. However I'm unsure how to go about adding them together. In my case I'm trying to have two view types (grid and list) and then also filter by category.

    Such as;

    mydomain.com/work/?view=list&category=architecture&category=residential

    Could someone share an example of there page template to get me started?
    Is it a case of formatting the page for every possible 'if' outcome?

    Regards,

    Attached Files
    337 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.