I'm developing an MVC component for Joomla 3.x with currently 3 views:

|-PAGES (displays all pages in a list, ordinary joomla view) 
|-PAGE (forms for page editing)
|-ITEM (forms for item editing)

In my page.edit view, I wanna call my item.params view via a bootstrap modal. currently, I have this setup (working modal) (link in layout edit.php):

<a href="<?php echo JRoute::_('index.php?option=com_pages&view=item&layout=params&tmpl=component&id='.$elem->id); ?>" class="modal"><span class="icon icon-cog"></span></a>

with behavior.modal enabled.

EDIT: note &tmpl=component (administrator template disabled)

How can I e.g. display save buttons and get them working? (with JToolbar if possible?)

Are there possibly beter ways to accomplish this?

EDIT: I've tried @Dmitry-Rekun's answer and I'm glad to say it works! However I've run into some issues with the implementation... :(


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.

  • Thanks! I'm not sure I get your first option (you can't display a toolbar in a modal without the rest of the (isis) template, can you?) but I think the second option will do it (I'll test it soon and you'll get the checkmark when it works :) ) Other options are still welcome :D Jan 6 '15 at 16:33
  • Displaying the buttons works! Thank you for that! Unfortunately there are still some issues :( Jan 7 '15 at 14:27
  • New issues = new questions ;) Jan 7 '15 at 15:55
  • They belong to the same problem, don't they? (I'm quite new here) Jan 7 '15 at 16:01
  • No exactly. You have them displayed, but issues may belong to another problem. It is better to create new questions. Editing the same question just creates the complexity and confuse to the answers. Jan 8 '15 at 7:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.