this is my problem...
I have some of images and links that I want to load different joomla modules when user click on them.
mean each hyperlink can load another module|position
thanks all
this is my problem...
I have some of images and links that I want to load different joomla modules when user click on them.
mean each hyperlink can load another module|position
thanks all
Copyright © 2021 Jogjafile Inc.
In case that you just want to call a module's content from a url the following answer will help you.
If you just want to show / hide a module in the same page you could use something similar to my previous answer: Joomla 3 Show different modules on same position depending on toggler
Joomla provides the functionality to call a specific file of the active template by adding the
tmpl=FILENAMEkey/value to the url's query string. All built-in templates have a component.php file if user wants to load the template with the component only. You could check the following link for more details: Adding print pop-up functionality to a component.You could do something similar to only show the modules that you want to load. You could copy the component.php to a new file (I have used custom.php) and added the following php code in the
<body> ... </body>part.So with a similar way as loadposition / loadmodule works you could call the new template file using:
or
or
Optionally if you want to load the module with a specific style, you could pass it to the second paramter of the renderModule method like:
Hope this helps