• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Upload Multiple Images - attachment_upload_button

#1
Hello!
I implemented the attachment_uploader (attachment_upload_button) for my own conent_type-
However, I can only select one image. Same XF-code unter conversations I can select multiple images.
I cannot find any differences. Is this a setting in the Attachment-Constraints I'm overlooking? Or is this a JS-topic?
Please give me a hint!
Harald
 
#3
Can anyone tell me why "xenOptions" isn't set in my template-modification? Where is this set?
I had to do:
PHP:
$xenOptions['swfUpload'] = XenForo_Application::get('options')->swfUpload;
$viewParams = array('xenOptions' => $xenOptions);
...
 

Jake B.

Well-known member
#4
Template modifications are compiled into the template so they should be available unless you're doing a template modification on a template that is being loaded in an odd manner.
 

NixFifty

Well-known member
#6
Can anyone tell me why "xenOptions" isn't set in my template-modification? Where is this set?
I had to do:
PHP:
$xenOptions['swfUpload'] = XenForo_Application::get('options')->swfUpload;
$viewParams = array('xenOptions' => $xenOptions);
...
You shouldn't even need to pass that to your template. {$xenOptions} is available globally. Use {$xenOptions.swfUpload} to get the value of that specific option.