1. 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?

Discussion in 'XenForo Questions and Support' started by ppikarev, Mar 4, 2013.

  1. ppikarev

    ppikarev Member

    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"/>
  2. Jake Bunce

    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.
    Brad L and ppikarev like this.
  3. ppikarev

    ppikarev Member

    Thank you Jake. Its working.
    Jake Bunce likes this.

Share This Page