I have a a need to render some different layouts depending on the number of child records on the parent object. e.g. if the parent has only 1 child, the page is shown as ‘one’, where we mash up the two records into a single view. Between 2 and 4 we nest the children below, and more than 4, we provide a list.
How do I create the render condition that queries the number of records in a model?
Question
Render Conditions to include count of records in a related model
This topic has been closed for replies.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
