Home / Forums / DynamiX Support / Grid Category Filtering: Pre-Select Category

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author

  • Kebab2kuk

    Is it possible to pre-select a category with the grid gallery?

    By default it will always select 'All' category. Is it possible to select a different category through the URL as some sort of variable. Such as my http://www.mydomain.com/?filter="something"

    I hope you understand what I'm getting at here.




    Hi Steve,

    Unfortuantely I don't think it can – shame because it would be quite handy. 


    Hi Andy, if I could implement it it would be great for the way my site is setup.

    I found the following script which gets attributes from the URL.

    function gup( name )


     name = name.replace(/[[]/,"\[").replace(/[]]/,"\]");

     var regexS = "[\?&]"+name+"=([^&#]*)";

     var regex = new RegExp( regexS );

     var results = regex.exec( window.location.href );

     if( results == null )

    return "";


    return results[1];


    An example of it working here, http://www.futureteetimes.com/test/?filter=essex

    Now as see it the next step is passing that attribute to the function which filters the grid gallery. Is it that simple or am I way off?

    Cheers, Steve

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.