Textpattern CMS support forum

You are not logged in. Register | Login | Help

#11 2013-12-20 13:27:03

etc
Developer
Registered: 2010-11-11
Posts: 3,401
Website

Re: [howto] Filter article lists by custom field using drop-down select menus

Hi dorka,

then you should put a hidden c input inside <form>:

<txp:if_category><input name="c" type="hidden" value='<txp:category />' /></txp:if_category>

Offline

#12 2013-12-20 13:46:35

dorka
Member
Registered: 2012-10-04
Posts: 90

Re: [howto] Filter article lists by custom field using drop-down select menus

Awsome! I wouldn’t have come up with this by myself. Thanks a lot.

Offline

#13 2013-12-20 14:00:17

dorka
Member
Registered: 2012-10-04
Posts: 90

Re: [howto] Filter article lists by custom field using drop-down select menus

Btw, my first thought was to use type attribute of <txp:page_url />, like this <txp:page_url type="c" /> but it didn’t output the url correctly:
...www.mysite.com/03_v_nabidce/baroko?SelectSize=116 instead of ...www.mysite.com/03_v_nabidce/c=baroko?SelectSize=116

Why is that?

Offline

#14 2013-12-20 14:12:08

etc
Developer
Registered: 2010-11-11
Posts: 3,401
Website

Re: [howto] Filter article lists by custom field using drop-down select menus

You mean, in form action='<txp:page_url />' attribute? It will be lost, unless you set method="post", which should work too.

Offline

Board footer

Powered by FluxBB