Skip to content

1.2.0

Choose a tag to compare

@mrnebbi mrnebbi released this 15 May 11:06
· 19 commits to master since this release

Version 1.2.0 adds the new getQueryStrings function. This allows you to even duplicate URL queries into your Twig template.

getQueryStrings

Pull an array of query strings from Craft. This gets around the problem of duplicated query string keys being lost, turning them into an array you can loop through.

An array will be returned with objects. Use .key and .value.

Return all URL queries

{% for query in getQueryStrings() %}
	{{ query.key }} - {{ query.value }}
{% endfor %}

Return only URL queries that match a key

{% for query in getQueryStrings('lookForKey') %}
	{{ query.key }} - {{ query.value }}
{% endfor %}