You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current block structure used by sablon to add images to the template suffers from a requirement that the merge fields be need to be inline with the image. This method works well if end user needs to use a "loop" or "if" construct in the template with images. Oddly positioned images wouldn't make sense here because they would visually exist outside of the expression block in the first place.
A relatively simple fix that might work for positioned images is to add the proper "merge field" text to the title attribute of the placeholder image. A second parser would run after the initial work of the MailMerge parser is completed to collect all of the tags formatted like: <wp:docPr id="4" name="Picture 4" title="@test.data.plot2"/>. The rId of the <a:blip r:embed="rId5"/> tag would get updated as needed to the real image value. The title attribute can be easily set and updated in MS Word via the "Alt Text" tab on the formats pane.
The text was updated successfully, but these errors were encountered:
The current block structure used by sablon to add images to the template suffers from a requirement that the merge fields be need to be inline with the image. This method works well if end user needs to use a "loop" or "if" construct in the template with images. Oddly positioned images wouldn't make sense here because they would visually exist outside of the expression block in the first place.
A relatively simple fix that might work for positioned images is to add the proper "merge field" text to the title attribute of the placeholder image. A second parser would run after the initial work of the MailMerge parser is completed to collect all of the tags formatted like: <wp:docPr id="4" name="Picture 4" title="@test.data.plot2"/>. The rId of the <a:blip r:embed="rId5"/> tag would get updated as needed to the real image value. The title attribute can be easily set and updated in MS Word via the "Alt Text" tab on the formats pane.
The text was updated successfully, but these errors were encountered: