mjda
Well-known member
Since I failed for about 6 hours yesterday trying to figure out how to do this any other way, I figured it couldn't be any harder to just use XF's attachment system to accomplish uploading images for my add-on. So, since I suck at coding I was hoping some of you would be able to help me along.
I really do want to learn what's going on here so, if possible, rather than just copy/pasting me some code a little explanation would be a lot better.
Anyways, here's what I put in my template:
I'm trying to just re-use the 'helper_attach_macro' template, which I'm only assuming will work, but it wouldn't work without the attachmentData arg. The problem now is I have no idea what should go into that variable or where I can look to find out.
I really do want to learn what's going on here so, if possible, rather than just copy/pasting me some code a little explanation would be a lot better.
Anyways, here's what I put in my template:
<xf:macro template="helper_attach_upload" name="upload" arg-attachmentData="{$attachmentData}" />
I'm trying to just re-use the 'helper_attach_macro' template, which I'm only assuming will work, but it wouldn't work without the attachmentData arg. The problem now is I have no idea what should go into that variable or where I can look to find out.