Timeline for How do I check if a structure has any entries at level 3 when I'm at level 1?
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 15, 2016 at 13:16 | vote | accept | Dominik Krulak | ||
Dec 13, 2016 at 16:03 | history | edited | Dominik Krulak | CC BY-SA 3.0 |
Improved performance. Fixed the glitch in elseif lvl == 1 statement.
|
Dec 13, 2016 at 15:27 | comment | added | carlcs |
This is a good solution, to improve performance you could just query for the amount of records in your conditionals products.descendantOf(entry).level(3).total() and entry.children.total() , as you’re not interested in the entry data at all.
|
|
Dec 13, 2016 at 15:23 | history | answered | Dominik Krulak | CC BY-SA 3.0 |