K
K
Konstantin Timosheno2014-12-03 20:51:15
MODX
Konstantin Timosheno, 2014-12-03 20:51:15

Problem with filtering in tagmanager2 in modx revo?

Good time of the day. The client refused Ajax filtering. Now I do the usual filtering by documentation

<div id="filters">
    <form action="" method="get">
        
        <input type="hidden" name="sortby" value="pagetitle" />
        <input type="hidden" name="sortdir" value="asc" />
        <input type="hidden" name="limit" value="10" />
        
        
        
        <button type="submit">Подобрать</button>
        <button type="button" onclick="window.location.href = window.location.pathname; return false;">Сбросить</button>
    </form>
</div>

==================================================================

<div class="sorting">
    
    <select class="f_sortby" name="sortby">
        <option value="pagetitle">по названию</option>
        <option value="price">по цене</option>
        <option value="publishedon">по дате</option>
    </select>
    &nbsp;
    <select class="f_sortdir" name="sortdir">
        <option value="asc">по возростанию</option>
        <option value="desc">по убыванию</option>
    </select>
    &nbsp;
    <select class="f_limit" name="limit">
        <option value="10">10</option>
        <option value="20">20</option>
        <option value="40">40</option>
    </select>
    
    <div class="clearfix"></div>
</div>

<div id="products">
    
    <div class="clearfix"></div>
</div>

<ul class="pages">
    
</ul>

When you click on the select button, it throws you to the main page (link like index.php?sortby=pagetitle&sortdir=asc&limit=10&f_komnat=&f_obsh_kv=122&f_etaj=). What am I doing wrong?
I forgot to say that I have a filter on each category, that is, I have not one category, but several at once, and they should not be filtered by ajax.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question