Filter to simple template minik2
- Posted by gilbog (3) Offline
Hi,
i'm trying to add a filter to the simple template like the one for the portfolio template.
I found a custom plugin to filter items in masonry on github (github.com/dynamick/multiple-filter-masonry)
I'm almost there, but i'm not able to hide the duplicate value from the filter.
Here my demo page to better understand: lastrada.genuetic.com/index.php/cosa-facciamo
And here my code to build the "filter"
<div class="btn-toolbar filters">
<?php
$numofitems = count($items);
if($numofitems)
{
foreach ($items as $key=>$item)
{
?>
<div data-toggle="buttons" class="btn-group">
<label class="btn btn-default">
<input type="checkbox" value="<?php echo $item->categoryalias; ?>" >
<?php echo $item->categoryname; ?>
</label>
</div>
<?php } ?>
<div class="clr"></div>
<?php } ?>
</div>
10 years 7 months ago #1
by gilbog
i'm trying to add a filter to the simple template like the one for the portfolio template.
I found a custom plugin to filter items in masonry on github (github.com/dynamick/multiple-filter-masonry)
I'm almost there, but i'm not able to hide the duplicate value from the filter.
Here my demo page to better understand: lastrada.genuetic.com/index.php/cosa-facciamo
And here my code to build the "filter"
<div class="btn-toolbar filters">
<?php
$numofitems = count($items);
if($numofitems)
{
foreach ($items as $key=>$item)
{
?>
<div data-toggle="buttons" class="btn-group">
<label class="btn btn-default">
<input type="checkbox" value="<?php echo $item->categoryalias; ?>" >
<?php echo $item->categoryname; ?>
</label>
</div>
<?php } ?>
<div class="clr"></div>
<?php } ?>
</div>
Please Log in or Create an account to join the conversation.
- Posted by TemplatePlazza (5310) Offline
Hi, I viisted your website and it looks good. have you managed to solve the problem?
10 years 7 months ago #2
by TemplatePlazza
Please Log in or Create an account to join the conversation.
- Posted by gilbog (3) Offline
Actually not yet!
I have included the code manually for categories that I need, but if I add a category I have to add the new button. It 's just a temporary solution.
I tried to add my code here, but I think it is not possible in this forum.
No response from the creators of this wonderful module.
10 years 7 months ago #3
by gilbog
I have included the code manually for categories that I need, but if I add a category I have to add the new button. It 's just a temporary solution.
I tried to add my code here, but I think it is not possible in this forum.
No response from the creators of this wonderful module.
Please Log in or Create an account to join the conversation.
- Posted by TemplatePlazza (5310) Offline
So you want the module to generate the category automatically? If so, you can take code example from the portfolio mode of MiniK2 right?
demo.templateplazza.com/joomla/index.php...2-in-portfolio-style
10 years 7 months ago #4
by TemplatePlazza
demo.templateplazza.com/joomla/index.php...2-in-portfolio-style
Please Log in or Create an account to join the conversation.
- Posted by gilbog (3) Offline
I tried, but I can't understand how categories are generated in portfolio mode.
In default.php of portfolio mode i only found the 'filter' tag divs, but empty. I think the categories are generated by some java script that I can't found.
10 years 7 months ago #5
by gilbog
In default.php of portfolio mode i only found the 'filter' tag divs, but empty. I think the categories are generated by some java script that I can't found.
Please Log in or Create an account to join the conversation.
- Posted by Extreme User (1) Offline
Hello,
I'd also like to add the categories filter from the portfolio style into the masonry style of this module. Have anyone found a sollution? Thanks!
10 years 2 weeks ago #6
by Extreme User
I'd also like to add the categories filter from the portfolio style into the masonry style of this module. Have anyone found a sollution? Thanks!
Please Log in or Create an account to join the conversation.