I am developing a simple Joomla module for the backend, and I am trying to keep it simple. I need to create some kind of popup box, either with a javascript popup window or a modal box. I want some basic content inside of the popup, with Joomla's user validation, but without the Joomla template being displayed. With a component, I could write a url like this:
http://my-site.com/index.php?option=com_component&tmpl=component
This url would only show the component's content, while still making sure the user is logged in. I am wondering if there is any way to do this for a module. Here are some options:
- Write a url that will output only the module's contents, and disable the Joomla template.
- Currently, a modal box uses an iframe to include another page inside of it. Is there any way to replace the iframe with content?
- Create a file on the server that is requested directly, and add a user validation check at the top. Is there any single Joomla file that I could include that would make sure that the user is logged in?
- If all else fails, I can use
die();
to skip writing the template.
I am using Joomla 1.5