Upload Multiple Images - attachment_upload_button

Bugfix

Member
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
 
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);
...
 
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.
 
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.
 
Use {$xenOptions.swfUpload} to get the value of that specific option.
Yes. Exactly that is the question! Please see my second post:
$xenOptions.swfUpload is not "true" - for whatever reason
{$xenOptions.swfUpload} is not "true" - it is not filled in my template! (In settings it is enanbled of course!
 
Top Bottom