Forum


Replies: 6   Views: 3628
Deletetemplateblock broken?
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by lbreu  · 18-01-2012 - 18:51

Hi

I just tried to use deleteTemplateBlock to remove a table when a list of items is empty, just like you try to do in your demo. However, only the tags $BLOCK_table$ are removed, not the actual content (a table, just like in your demo). I tried your demo with the IE and Firefox, LibreOffice and Word 2007, in all combinations the table is also still there in the final document.

Am I missing something? Did I not understand the idea behind deleteTemplateBlock()??

Would appreciate some hints and/or fixes...

Cheers,
Lorenz