-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clone Block more times #598
Comments
Today has someway to do that (some kind of mult clone block)?
$templateProcessor->setValue('Planet', htmlspecialchars('Mercury')); $templateProcessor->setValue('Planet', htmlspecialchars('Venus')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cloneBlock method doesn't work if i run more times.
[code]
$templateProcessor->setValue('Planet', htmlspecialchars('Venus'));
$templateProcessor->cloneBlock('CLONEME', 1);
$templateProcessor->setValue('Planet', htmlspecialchars('Mercury'));
$templateProcessor->cloneBlock('CLONEME', 1);
$templateProcessor->setValue('Planet', htmlspecialchars('Venus'));
$templateProcessor->cloneBlock('CLONEME', 1);
OR
$templateProcessor->cloneBlock('CLONEME', 3);
$templateProcessor->setValue('Planet#1', htmlspecialchars('Venus'));
$templateProcessor->setValue('Planet#2', htmlspecialchars('Mercury'));
$templateProcessor->setValue('Planet#3', htmlspecialchars('Venus'));
[/code]
The text was updated successfully, but these errors were encountered: