my page is blowing up when i try to wrap a php statement inside [collapse] tags. the page is set for php and works normally when the php is outside the [] tags. but as soon as i try to put the php statement inside the tag, the thing won't save properly and goes into an infinite loop of some kind. i can escape out of it and revert to previous version of the page to recover, so no worries there.
but can you tell me if this behavior is by design? should php work inside collapse tags?
i guess maybe it is a problem cause the php wants to run and print results when the page is loaded, but can't do so properly because [collapse] is preventing that part of the page from loading?
the php statement is this (it calls and displays an ad via OpenX module): <?php echo openx_invoke('ad-name');?>
thank you.
Comments
Comment #1
pukku commentedHave you tried changing the order that the PHP and Collapsible Text filters operate in?
Ricky
Comment #2
john.kenney commentedgood idea, but this does not seem to help.
before, i had collapsible above php evaluator. then i just changed to move it after it. neither sequence works.
i have a number of other filters in place. possibly they are interfering somehow? but there's never been a problem before now in any of the places i use the module.
i gather from your answer that you think that it should work, correct?
oh well, i will probably just try to handle this some other way.
Comment #3
pukku commentedI have no idea if it should work or not -- the PHP filter probably does a bunch of magic. If you want the collapsible section, you could probably make the call you need to make yourself -- basically, you just need to create an array as for a form, with a '#collapsible' fieldset, and call
drupal_renderon it...Comment #4
john.kenney commentedthanks for your suggestion, but i've changed the layout to work around the issue. perhaps another time i'll look into your ideas.
thanks for your help.
closing issue.