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 ...
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:
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:
There is ...
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?
so the array now reads
[layoutId:protected] => joomla.edit.frontediting_modules
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 ...