Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HELP] Filtering an category items , from URL query strings #170

Open
psycomani opened this issue Dec 18, 2021 · 0 comments
Open

[HELP] Filtering an category items , from URL query strings #170

psycomani opened this issue Dec 18, 2021 · 0 comments

Comments

@psycomani
Copy link

Filterizr version
Latest !

Describe the issue in details
Hello everyone

How can i filter a menu items, directly from pasting url on browser.

for example ... web.com/portfolio?category_id=2

and get directly , items of category 2 filtered on fileterizr menu.

is this possible , how can i do this ?

I have my menu like this.

<div class="container">
    <div class="row">
        <div class="col-12">
            <div class="portfolio-menu">
                <ul id="filtrnav">
                    <li class="filtr filtr-active" data-filter="all"><?php echo ALL; ?></li>
                    <?php
                    foreach ($portfolio_category as $row) {
                        ?>
                        <li class="filtr" data-filter="<?php echo $row['category_id']; ?>" id="<?php echo $row['category_id']; ?>"><?php echo $row['category_name']; ?></li>
                        <?php
                    }
                    ?>
                </ul>
            </div>
        </div>
    </div>
    <div class="row filtr-container">
        <?php
        foreach ($portfolio as $row) {
            ?>
            <div class="col-lg-4 col-md-6 filtr-item" data-category="<?php echo $row['category_id']; ?>" data-sort="Menu">
                <div class="portfolio-group">
                    <div class="portfolio-photo" style="background-image: url(<?php echo base_url(); ?>public/uploads/<?php echo $row['photo']; ?>)">
                        <div class="portfolio-bg"></div>
                        <div class="portfolio-table">
                            <div class="portfolio-icon">
                                <a href="<?php echo base_url(); ?>public/uploads/<?php echo $row['photo']; ?>" class="magnific"><i class="fa fa-search-plus"></i></a>
                            </div>
                        </div>
                    </div>
                    <div class="portfolio-text">
                        <h3><a href="<?php echo base_url(); ?>portfolio/view/<?php echo $row['id']; ?>"><?php echo $row['name']; ?></a></h3>
                    </div>
                </div>
            </div>
            <?php
        }
        ?>
    </div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant