-
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
Insert Bullets in Template Processor #826
Comments
UP! Is there anyone who can help with this? it does create a new bullet point like it should, but the text is not appear on the side of the bullet point. |
Hi I found the same issue here Anybody else have solve this problem ? Have a good day |
Hi, I have found a solution for people who have the same issue In my template, I have write this : And in my code, I duplicate this section according to the number of bullet point I want and replace variables after the bullet point thanks to index (see https://phpword.readthedocs.io/en/latest/templates-processing.html#cloneblock) $templateProcessor->cloneBlock('specificKnowledgeSection', \count($contract->getSpecificKnowledge()), true, true);
for ($index = 1; $index <= \count($contract->getSpecificKnowledge()); $index++) {
$specificKnowledge = $contract->getSpecificKnowledge()[$index - 1];
$templateProcessor->setValue('specificKnowledge#' . $index, $specificKnowledge);
} Have a good day ! |
Hi there,
I am trying to replace a text with a bullet numbered text but have not found a way yet. I tried placing a bullet using the PHPWord's variable and line break of but it did not insert a bullet point on a new line and only replaces the text.
I will be thankful if someone can help me out.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: