Hi,
I have a portfolio view block that is filterable based on three categories. On page load, the default setting displays all of my portfolio items (the "show all" filter option). I would like to remove the show all filter option and reset the default filter on page load to one of my three categories. Any help would be appreciated
Thanks
Hi,
The portfolio module does not supports that feature yet. We must to do custom work to add this feature. Please contact us via email for details. [email protected]
Thank you.
Ok. If that requires too much effort, would it be possible to limit the number of items displayed by the show all option (so it only displays the first 8 items for example) but still allow items 9+ to be included by the filter once a filter category is selected. Currently if I only display the first 8 items, any items not on screen at the start will not appear after selecting the category.
nevermind, I figured it out. If anyone is interested you can change the default filter behavior to show none instead of show all by opening filter.js in the dexp_portfolio module (located under modules>drupalexp>dexp_portofolio) and replacing:
$grid.shuffle('shuffle', 'all');
at the end of the file (before (window).load(function()) ) with
$grid.shuffle('shuffle', function($el, shuffle) {
return false;
});
hello assadi ,
i've quite the same issue like you have , i would like to select between subcategories in the portfoliofilter , how can i display the filter with subitems, do you have a suggestion for me?
best regards jens
I don't know the solution off the top of my head, and I'm pretty new to this. However, I'd wager a place to start would be to look at the drupalexp_portfolio php template file and add your subcategory filter buttons there along with some classes for controlling visibility and adding the appropriate data-filter values to each subcategory (this is how the filter buttons are added in the first place, and looking at the php file should make it more clear). You would then need a little javascript so that clicking on a main filter category displays the right set of subfilter buttons, and the rest should take care of itself (I would think).
I don't know the solution off the top of my head, and I'm pretty new to this. However, I'd wager a place to start would be to look at the drupalexp_portfolio php template file and add your subcategory filter buttons there along with some classes for controlling visibility and adding the appropriate data-filter values to each subcategory (this is how the filter buttons are added in the first place, and looking at the php file should make it more clear). You would then need a little javascript so that clicking on a main filter category displays the right set of subfilter buttons, and the rest should take care of itself (I would think).