XF 2.2 Replace Multiple with Template Replace Filter

mjda

Well-known member
Right now I'm using something like the following link to remove the make filter from my addon list.

Code:
<a href="{{ link('cars', null, $filters|replace('make', null)) }}"

However, when the make is removed, I also want to remove the model. Is there a way to remove both the 'make' and the 'model' at the same time?
 
HTML:
<a href="{{ link('cars', null, $filters|replace('make', null)|replace('model', null)) }}"

Or (I think):
HTML:
<a href="{{ link('cars', null, $filters|replace({'make': null, 'model': null})) }}"
 
Back
Top Bottom