Loading...
 
Skip to main content

Features / Usability


Fade plugin usage

posts: 2 France

I'm using fade to propose to my users only the content they need, i'd like to know if {FADE} imbrication is really supported. For example, if i'm using:

  • 4 depth levels
  • 6 cases inside the 4th imbrication
  • another {FADE} section imbricated inside another level


it works:

http://demo.tiki.org/9x/tiki-index.php?page=arthurdent1

If i'm using:

  • 3 depth levels
  • 7 cases inside the 4th imbrication
  • another {FADE} section imbricated inside another level


it fails

http://demo.tiki.org/9x/tiki-index.php?page=arthurdent2

(the code is strictly the same, except one more {FADE} section)

NB: i can reproduce it by another way (3 depth levels, it fails with several case in the third level (more than 6)

So may you tell me if that's not well supported, so my problem is normal, or if it's a bug and should be corrected.

A part of my project depends on this

Thanks in advance

posts: 215

This is a known problem. See Bug & Wish list item 4217: Limited number of single nested plugins, which should not be limited.

If you edit: /lib/core/WikiParser/PluginMatcher.php, and increase the number of passes from 500 to 800, then your FADE example with the 7 levels will work.

Copy to clipboard
if (++$passes > 800) { return; }


But that is not permanent fix. It will increase the number of nested FADE plugins you can have, but the number is still limited.

Tom

posts: 2 France
Thanks for your answer.