So I wanted to create a popup in my custom Joomla component that is basically a whole page in itself not an alert box so I needed to create a page without template (header footer) showing and just what I want.
For example: <a href='index.php?option=my_component&view=popup_page'>Click here</a>
(I used jQuery plugin to open it up in a popup instead of new page)
To view this page without template, all you need to do is simply add '&tmpl=component', so in the above case the URL will simply become:
For example: <a href='index.php?option=my_component&view=popup_page&tmpl=component'>Click here</a>
Hope it helps someone :)
For example: <a href='index.php?option=my_component&view=popup_page'>Click here</a>
(I used jQuery plugin to open it up in a popup instead of new page)
To view this page without template, all you need to do is simply add '&tmpl=component', so in the above case the URL will simply become:
For example: <a href='index.php?option=my_component&view=popup_page&tmpl=component'>Click here</a>
Hope it helps someone :)
No comments:
Post a Comment