I have developed a custom component that displays some information. I want to show the same information in modal popup window without header and footer information. what should be best approach to achieve this?
What is best approach to show the component page in popup-modal window without header and footer?
Haven't done this for awhile, but these steps should do it:
JHTML::_('behavior.modal');near the top of the view
class="modal"to any links you want to open in a modal window
&tmpl=componentthe the link you want in a popup
Just a note that
'behavior.modal'will utilise Mootools rather than Bootstrap– LodderApr 6, 2018 at 15:34
I have used the Modal plugin from Regular Labs to do something like you describe. There is a free version and a Pro version available. Their plugin is easy to use and with minimum reading of their tutorial, anyone can use them.
I am not affiliated with them, nor do I have any kind of relation with them.