XF 2.0 PageNav with Data and Params?

Jaxel

Well-known member
I am doing my pagenav as follows:

Code:
        <xf:pagenav page="{$page}" perpage="{$perPage}" total="{$total}" range="10"
            link="ewr-torneo/events/results" data="{$event}" wrapperclass="block-outer-main" />

In addition to doing data="{$event}", I would like to do something like params="{'league':$league.league_id}"... however, that doesn't work. How would I go about doing this, to have both a data entry, and extra params?
 
This works params="{{ {'season_id': $match.season_id} }}"

Code:
    <div class="block-outer"><xf:trim>
        <xf:pagenav page="{$page}" perpage="{$perPage}" total="{$total}"
            link="match-day/match" data="{$match}" params="{{ {'season_id': $match.season_id} }}"
            wrapperclass="block-outer-main" />
        </xf:trim>
    </div>

188617
 
Back
Top Bottom