link_to_remove_tag
This helper is used to generate an <a> tag with the href attribute. It is utilized for navigating to the current collection page. The resulting page will filter and display products with the tags carried in the URL while excluding the products with the tags passed as parameters.
Please note that this helper is currently only supported for collection pages and is not compatible with other pages."
Params
tag{String}Product type, requiredhash.text{String}text is used to generate theatag display content text, if passed in non-string will be converted to empty string by default[attribute]{Object}attribute of form html, optional, format: class="_class"returns{String}html
Usage
{{ link_to_remove_tag tag [attribute] }}
Example
{{#each collection.all_tags as |tag|}}
{{#if (contains ../current_tags tag) }}
{{ tag }}
{{else}}
{{ link_to_remove_tag tag class="link-class" title=tag text=tag }}
{{/if}}
{{/each}}
Was this article helpful to you?