PHPWord icon indicating copy to clipboard operation
PHPWord copied to clipboard

Nesting Block Variables

Open mroptimax opened this issue 4 years ago • 2 comments

Is there a way to nest Block-Variables?

I think about a usage like this:

${user} ${username} ${comments} ${text} ${/comments} ${/user}

So i get all user and for each user all comments. Something like a For Each Loop in another For Each Loop.

mroptimax avatar Dec 08 '20 08:12 mroptimax

same question

lifenglsf avatar Jan 02 '21 10:01 lifenglsf

My workaround is to first replace user and replace the comment placeholder with comment<i> and than replace the comment<i> blocks

gimler avatar Apr 16 '24 19:04 gimler