• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

How to use pagenav with GET data?

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:
<form method="get">
            <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"/>

Jake Bunce

XenForo moderator
Staff member
This code example should help:

Admin CP -> Appearance -> Templates -> forum_view

<div class="pageNavLinkGroup">

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

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

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