Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#346 2024-09-16 19:59:01

etc
Developer
Registered: 2010-11-11
Posts: 5,681
Website GitHub

Re: mem_postmaster - Postmaster Revamp

Bloke wrote #337873:

we need to put the whole expression in the test attribute.

Only in this rather special valueless query case. Your snippet was fine (and quite logical), it’s just that not does not work this way. A ‘normal’ tag detects which (true or false) part it should process before parsing it. The global not just inverses this choice. But <txp:evaluate /> must parse first its content to know whether it’s empty and only then eventually handle not attribute. I don’t think we have implemented this exception.

Offline

#347 2024-09-17 10:10:17

planeth
Plugin Author
From: Nantes, France
Registered: 2009-03-19
Posts: 240
Website GitHub Mastodon

Re: mem_postmaster - Postmaster Revamp

etc wrote #337874:

Only in this rather special valueless query case. Your snippet was fine (and quite logical), it’s just that not does not work this way. A ‘normal’ tag detects which (true or false) part it should process before parsing it. The global not just inverses this choice. But <txp:evaluate /> must parse first its content to know whether it’s empty and only then eventually handle not attribute. I don’t think we have implemented this exception.

Thanks Oleg for this thorough explanation. It should go in the wiki, no? What’s the modus operandi to update the wiki?

Offline

#348 2024-09-17 10:18:16

etc
Developer
Registered: 2010-11-11
Posts: 5,681
Website GitHub

Re: mem_postmaster - Postmaster Revamp

Someone has to submit it :-) Also, I’d prefer not to document Easter eggs, they are hacky and subject to change.

Offline

Board footer

Powered by FluxBB