Skip to content

clone block increment name of the image #549

@Federica92

Description

@Federica92

Hi,
I was using a custom clone_block that allow me to increment the variable inside the block that I'm cloning and clone the image inside, but the name of the image in the folder word/media, are still the same.
How can I clone and increment the name of the image?
I started to add the image in the folder word/media just using:

 $templateprocessor->zipClass->addFile($filepath, 'word/media/image'.$index), 

but they are not incrementer on the doc, how can I edit the xml t oincrement them? I posted the same question on stackoverflow as well.

http://stackoverflow.com/questions/30731653/template-processor-clone-block-incrementing-image
Thank you.
Federica


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions