We’re rewarding the question askers & reputations are being recalculated! Read more.

Hot answers tagged

7

It's actually pretty simple. In view.html.php, load modal library, if it's not already done: JHtml::_('bootstrap.modal'); For adding button to toolbar, use: // Toolbar object $toolbar = JToolBar::getInstance('toolbar'); $layout = new JLayoutFile('joomla.toolbar.popup'); // Render the popup button $dhtml = $layout->render(array('name' => 'test', '...


6

Okay I found the way that this can be done. In the helpers folder of you component you create a new folder called html and in it you place your file. Now using <?php echo JHtml::_('widget.customfield'); ?> as our example the file name will be admin/helpers/html/widget.php then in the file you add the following: <?php defined('_JEXEC') or die; /** ...


4

Modals aree usually loaded using the URL parameter template=component. That means that instead of the regular templates/your_template/index.php Joomla will use templates/your_template/component.php. This component.php file is supposed to only load the component output without any module positions. Joomla will also only load the CSS files defined there.


3

When you save the template with the JavaScript call saveTemplate(), you are sending an Ajax call to the server. This Ajax call is the one being redirected with a HTTP redirect. You are ignoring the response from the server. If you checked it out, it would be the content of the page that you're trying to redirect to. To issue a redirect after the Ajax call ...


3

Easily? You can use a 3rd party extension. One I am aware of, is the Modals by Nonumber. Then you can insert the modals tags into your Menu Item title.


3

The problem turned out to be something as simple as &amp;, Simple changing: <input type="hidden" name="return-url" value="<?php echo base64_encode('index.php?option=com_file_manager&amp;view=file&amp;layout=modal&amp;tmpl=component'); ?>" /> to: <input type="hidden" name="return-url" value="<?php echo base64_encode('index....


3

If you want to load only component in view add tmpl=component in url of that page you want to open. for example: joomlasite.com/index.php?option=com_component&view=page (this will load whole joomla site) but joomlasite.com/index.php?option=com_component&view=page&tmpl=component (this will load only component part in view). ...


2

For this you have to create custom HTML toolbar button with your own custom href. To achieve this, use: // Toolbar object $toolbar = JToolBar::getInstance('toolbar'); // Render the popup button $buttonHTML = "<a class='btn btn-small' data-toggle='modal' href='".JRoute::_('index.php?option=COM_YOURCOMPONENT&view=modal&tmpl=component')."' data-...


2

The problem being is that you are importing Bootstrap 2.x which comes shipped with Joomla (coming via <jdoc:include type="head" />) and Bootstrap 3.3.5 via the following link: https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js which I assume you've manually added or is coming from the component. You've also got the following jQuery ...


2

a) Add the following code to your frontend template index.php <?php if ($this->countModules( 'modal' )) : ?> <!-- This is the modal --> <div id="modal-example" uk-modal> <div class="uk-modal-dialog uk-modal-body"> <jdoc:include type="modules" name="modal" /> <p class="uk-text-right"> <...


2

I can recommend Regular Labs Modals. Go for the Pro Version, which offers more options. Modals is a Joomla plugin extension to help you create cool modal popup. You can make modal popups for texts, articles, other internal pages, external pages, images, videos, galleries... Full control Modals is packed with options to control the modal popups. ...


2

Well the only solution / workaround I have found so far is to assign a different template when editing modules via the front end. Thanks to Regular Labs Advanced Template Manager I was able to use the default Joomla Protostar template for front end module editing only. This is achieved by assigning the template as default whenever a particular URL is ...


1

It looks like jQuery is loading before MooTools and this might be the cause of the issue. Force MooTools to load first by adding the following line high up in the HEAD section of the template index.php file: JHTML::_('behavior.framework', true); Alternatively, you may be able to fix the load order using a third party extension such as jQuery Easy or ...


1

I don't think this is possible out of the box. Maybe you can create your own JFormField which creates wrapper around the subform.


1

I like Engage Box for anything popup/modal related. I have suggested it on a few posts now, so I feel like a broken record. However, I do use it on about 20 websites. There is a specific function for external websites. It is easy to setup and has lots of extra features like setting cookies, custom page assignments, calling it through buttons, etc. On ...


1

To make it simple, if you only want to show an example, I would do this: <?php JHTML::_('behavior.modal'); ?> and <a href="http://www.example.com/images/admin-login-example.png" class="modal-button btn modal" style ="min-width: 194px;" id="modalLink1"><span class="icon-screen"> </span> Preview</a> where admin-login-...


1

As @subashbasnet8 pointed out, you can add tmpl=component to your URL. This will display your site using the file JOOMLAROOT/templates/YOURTEMPLATE/component.php, a template file that loads the HTML headers and your component area (as opposed to the index.php file that usually is loaded). You can modify this file if needed, or you can create your own custom ...


1

If you use bootstrap.modal , the form will be within your view, then the property $form should be archived through Model ( the model should be JModelForm ). If you use modal with iframe , ( similar to Joomla Article choose ) , you have to create view for the new form.


1

You can call any page with an additional parameter to show only the component (tmpl=component). For example, to add a custom button in toolbar: $bar = JToolbar::getInstance('toolbar'); $button = "<a class=\"btn btn-small\" onclick=\"window.open(this.href,'{$title}','scrollbars=yes,resizable=yes,location=no,menubar=no,status=no,toolbar=no,left=0,top=0,...


1

You can display them like in the ordinary list view. See for example modal.php of the articles view. Just use JToolbarHelper to display buttons. Or you can display buttons like in batch files: <button class="btn btn-primary" type="submit" onclick="Joomla.submitbutton('article.batch');"> See batch of the articles view.


1

You have view=files in your return-url hidden input of the form. Then in the controller you assign it to $return var and redirect using it. That is why you are being redirect to the list view.


Only top voted, non community-wiki answers of a minimum length are eligible