Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 1514

Joomla! 3.x Coding • Dropdown list in sublayout

$
0
0
I'm using a file upload sublayout in a backend component, where the user selects a value from a dropdown list that is later used to tag the uploaded file(s).

However, the dropdown list is weirdly truncated (see below) and I can't see how to get around this.

The code from my view is also below

Any ideas?

David

Code:

<!-- file upload form --><div id="collapseUpload" class="collapse">    <form action="<?php echo JUri::base(); ?>index.php?option=com_my_component&task=file.uploadFlow&tmpl=component&<?php echo $this->session->getName() . '=' . $this->session->getId(); ?>&<?php echo $this->session->getFormToken(); ?>=1&format=html" id="uploadForm" class="form-inline" name="uploadForm" method="post" enctype="multipart/form-data">        <div id="uploadform" class="uploadform">            <fieldset id="upload-noflash" class="actions">                <?php echo $this->form->renderField('folder_id'); ?>                <label for="upload-file" class="control-label"><?php echo JText::_('MY_COMPONENT_UPLOAD_FILE'); ?></label>                <input required type="file" id="upload-file" name="Filedata[]" multiple /> <button class="btn btn-primary" id="upload-submit"><span class="icon-upload icon-white"></span> <?php echo JText::_('MY_COMPONENT_START_UPLOAD'); ?></button>                <p class="help-block">                    <?php $cMax    = (int) $this->params->get('upload_maxsize'); ?>                    <?php $maxSize = JUtility::getMaxUploadSize($cMax . 'MB'); ?>                    <?php echo JText::sprintf('JGLOBAL_MAXIMUM_UPLOAD_SIZE_LIMIT', JHtml::_('number.bytes', $maxSize)); ?>                </p>            </fieldset>        </div>    </form></div>
Screenshot 2024-06-04 at 10.14.51.png

Statistics: Posted by david0058 — Tue Jun 04, 2024 9:19 am



Viewing all articles
Browse latest Browse all 1514

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>