Forum


Replies: 2   Views: 337
How do i check if a block has variables?
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 crewscontrol  · 19-12-2023 - 15:45

I am using the getTemplateVariables method to get a list of variables.  I can check if the variable starts with  "BLOCK_" to know which ones are blocks but would like to know if the block has variables inside.  I want to keep track of variables that are blocks that contain other variables and those that do not.

 

Is there a way to do this?  Thanks.