Hot answers tagged

5

You can used Joomla's renderModal function to initiate a Bootstrap modal. $name = 'myModal'; $html = '<a href="#modal-' . $name.'" data-toggle="modal" class="btn">Launch modal</a>'; $modalParams = array(); $modalParams['title'] = 'Modal title'; $modalBody = '<p>Modal main text line 2</p>'; $modalBody .= '<p>Modal main text ...


5

The addIncludePaths call only affects that particular instance of the $layout variable. Unless you are also rendering the layout in the plugin, your code will have no effect on the actual rendering. It looks like you are trying to affect this line from the document renderer: JLayoutHelper::render('joomla.edit.frontediting_modules', $displayData); This ...


3

It is possible to create an override for the edit params layout only for the com_content component. In general the JLayout system will search for overrides in the following folders, with priority order as shown: 1. templates/mytemplate/html/layouts/com_mycomponent 2. components/com_mycomponent/layouts 3. templates/mytemplate/html/layouts 4. layouts There is ...


2

OK , found a workaround since we are already extending few classes I managed to extend the JLayoutFile class and add my path in between layout and template/html/layout via this method How to override core classes? http://prntscr.com/4ln5dt so the array now reads JLayoutFile Object ( [layoutId:protected] => joomla.edit.frontediting_modules [...


1

Just stumbled upon this; the top answer is not correct, and the workaround offered is not needed. As they were posted a long time ago, information was probably not well known at the time. It is the main purpose of JLayout to be overridable, so it was the case from day 1 (in Joomla 3.0.0). All you have to do to override, say joomla.edit.frontediting_modules ...


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