Lava Filters - FromIdHash
Category:Other
Description:Returns a Rock Entity Id from an IdHash string generated by the ToIdHash filter.
Input:
Lava: //- Get the IdHash for Ted Decker.
{% person where:'LastName == "Decker" && NickName =="Ted"' %}
...
{% assign idHash = person.IdKey %}
...
{% endperson %}
Ted's IdHash is: {{ idHash }}.
//- Pass the IdHash to the FromIdHash filter to get the person's Id.
{% assign personFromHash = idHash | FromIdHash | PersonById %}
Hello {{ personFromHash.NickName }}!
Output: Ted's IdHash is: 5R6B5VmEYw.
Hello Ted!