New answers tagged

1

A bit late, but I've just come across this very problem and found a solution that works well enough. Thought I'd post it here in case anyone is trying to do something similar. As far as I can tell, doing this in the database query itself (without too many complicated custom selects / conditions) is not feasible. Category queries do have an option to only ...


1

I don't think there is an option in current craft to get the relations query based on the order. But you can do that, using where statements like this : {% set offers_for_institute = craft.entries().section('offers') .innerJoin('relations', 'elements.id = relations.sourceId') .andwhere('relations.sortOrder = 1') .andWhere("relations.targetId = #{entry....


Top 50 recent answers are included