XF 2.0 Use multiple times <xf:macro template="helper_attach_upload" in a template.

logixsol

Member
Hi There,

Looking for help to add multiple helper_attach_upload templates inside a template
Right now when i use below template macro, 2 times in a template then images preview not works well, and also every file upload dialog open two times.

<xf:macro template="helper_attach_upload" name="upload_block" arg-attachmentData="{{$imageData}}" arg-type="abcdef" arg-hiddenName="abcdef" />

Both times we have different arg-attachmentData, arg-type and arg-hiddenName values.


Or the way i need to extend the
<xf:formrow name="images" value="feature_image"
label=" Images "
data-xf-init="attachment-manager">

attachment-manager ? So, i can meet what i am looking for.
 
Last edited:
Back
Top Bottom