Addnewinputs
The addnewinputs tag is used to sort your custom collection in Silverfin templating language.
The addnewinputs tag allows you to sort a custom collection based on the information that has been entered.
In the example below, we assign our collection to a variable investments and filter it by sorting on a “date”. To make sure this code works it should be between the {% addnewinputs %}/{% endaddnewinputs %} tags.
{% addnewinputs %}
{% assign investments = custom.investments_office_material | sort:"investment_date" %}
{% endaddnewinputs %}
{% stripnewlines %}
{% fori acc in investments %}
{% if forloop.first %}
| Date
| Description
| Value
{% newline %}
|----15%----
|----60%----
|----------:+
{% endif %}
{% newline %}
| {% input acc.investment_date as:date %}
| {% input acc.descr as:text size:mini placeholder:"Description" %}
| {% input acc.value as:currency %}
{% endfori %}
{% endstripnewlines %}
Output
Updated over 1 year ago