Question Joomla 4 alpha display modal with insert image button

Plus d'informations
20 Fév 2020 10:22 #1 par Amighost
I am developing a custom module in Joomla4 alpha, using a bootstrap rendered modal window so that the user of the component will assign images from media in the Joomla back end to the extension gallery.

In Joomla3.x, there are insert and close buttons when the modal window comes up.

In Joomla4, there is not or I am missing something?
$html .= JHtmlBootstrap::renderModal(
             'myModal',
             array(
                 'url' => Uri::root() . 'administrator/index.php?option=com_media&tmpl=component&e_name=myslideimgname&asset=com_modules&author=&path=' . '&' . JSession::getFormToken() . '=1"',
                 'width' => '620px',
                 'height' => '390px'
             )
         );

In Joomla3.x, there is view=images in which the two buttons were added in its layout, in Joomla4 alpha there is not such a view, only file and media views.

The way around this problem is to make the user create a folder in the images folder of Joomla, add images there, then read those images in the layout of the extension from the folder.

However, if there is a solution to add the insert button, I would rather employ it.

Veuillez vous connecter ou vous enregistrer pour rejoindre la conversation.

  • Vous ne pouvez pas: Créer un nouveau sujet.
  • Vous ne pouvez pas: Répondre au sujet.
  • Vous ne pouvez pas: Éditer votre message.
Modérateurs: serge
Temps de génération de la page : 0.112 secondes
Propulsé par Kunena