
PDF creation with liquid collections
Hi,
When creating a pdf, the data I show is derived from a {{record}} object. My record object is a company with multiple contracts.
So I loop through the contract ( {% for c in record.contracts %} ). But I want to sort this liquid collection based on the type of contract which has a belongs to relation with the contracts and the creation_date of the contract.
Can someone help me out here? Is it possible with liquid?
Hi,
When creating a pdf, the data I show is derived from a {{record}} object. My record object is a company with multiple contracts.
So I loop through the contract ( {% for c in record.contracts %} ). But I want to sort this liquid collection based on the type of contract which has a belongs to relation with the contracts and the creation_date of the contract.
Can someone help me out here? Is it possible with liquid?
Login to reply