How to use pagenav with GET data?

ppikarev

Member
Hi.
I have filter on my page. How I can transmit filter data to xen:pagenav and dont lost filter parameters on next page?

Form example:
Code:
<form method="get">
        <label>User:</label>
            <input type="text" name="username" value="{$filters.username}" class="textCtrl AutoComplete" type="search" data-autosubmit="true" results="0" autocomplete="off" />
<input type="submit" value="Search"/>
</form>

Thanks.
 
This code example should help:

Admin CP -> Appearance -> Templates -> forum_view

Code:
<div class="pageNavLinkGroup">

	<div class="linkGroup SelectionCountContainer">
		<xen:comment><xen:include template="forum_view_legacy_controls" /></xen:comment>
	</div>

	<xen:pagenav link="forums" linkdata="{$forum}" linkparams="{$pageNavParams}" page="{$page}" perpage="{$threadsPerPage}" total="{$totalThreads}" />

</div>

xen:pagenav is a template function. I think you want linkparams. You can pass in extra params there.
 
Back
Top Bottom