Please help! Chaining output filters doesn't work in chunks. Single filters works fine, but if multiple filters applies to placeholder, then the whole material output becomes broken. Because of this I can't use some important modules like Login, because it relies on "is" filter to process messages when profile is edited. And "is" for itself must be used with other filters like "then" and "else", so the whole construction becomes chain of filters.
For example:
This filter works fine:
[[+bigsrc:notempty=`<a href="[[+bigsrc:empty=`[[+src]]`]]" style="display:block" data-lightbox="page images" title="[[+title]]">`]]
but this one already won't work:
[[+bigsrc:notempty=`<a href="[[+bigsrc:empty=`[[+src]]`]]" style="display:block" data-lightbox="page images" title="[[+title]]">`:empty=``]]
I've read that this issues already was in versions 2.1.x more than a year ago, wasn't it fixed, or is there some work around?
Your code doesn't make any sense to me (maybe I'm just tired). It appears that you're testing for bigsrc being empty inside a test for it being notempty. That second test will never be passed. Then, you're testing the results of the notempty modifier to see if they're empty.
I'm guessing, but you might want something like this:
[[+bigsrc:notempty=`<a href="[[+bigsrc]]" style="display:block" data-lightbox="page images" title="[[+title]]">`:else=[[+src:notempty=`<a href="[[+src]]" style="display:block" data-lightbox="page images" title="[[+title]]">`:else=``]]]]
That's fairly deep nesting. I'm not sure it will work, and if it does, it will be slow. It would be a lot faster to do it with a custom snippet.