TypoScript · Question 12 of 12

An integrator writes [frontend.user.isLoggedIn] && [tree.level > 1] and wonders why the second condition is ignored. Why?

1 answer is correct. Hard

Show answer

Answer

  • D Several pairs of brackets are no longer combined; everything after the first closing bracket silently counts as a comment

Explanation

Since the introduction of the Symfony Expression Language all criteria belong in one pair of brackets: [frontend.user.isLoggedIn && tree.level > 1]. The old chaining fails without an error message, which makes errors hard to find.

Certifications & exams

Which exam comes next?

You can already practise for 19 exams, and 21 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications