|
Hiding modules is now possible with the JUGA Module: mod_hiddenbyjuga! The method for using this module will vary slightly depending on the version of Joomla! you are using. Before we get into the process, though, let's run over what's actually happening. Doing so will make this process much simpler for you. What's actually happening? | You will be inserting mod_hiddenbyjuga into a particular position in your template. Then, you will be positioning the module(s) that are to be restricted within the mod_hiddenbyjuga. Then, you will tell mod_hiddenbyjuga whether or not to display its contents depending on the user's JUGA Group. It's that simple! All you have to do is create a new module position in your template (the method varies by Joomla! version, so see below) and assign your modules to that new position. Then, you'll assign a copy of mod_hiddenbyjuga to the original position of those modules. Finally, you'll tell mod_hiddenbyjuga the JUGA groups it should display for! With multiple copies of mod_hiddenbyjuga on your site, think of the possibilities! |  | Joomla! v1.0.x - use mod_hiddenbyjuga v1.01
- Create a Module Position under Site>>Template Manager>>Module Positions. For ease of this example, call it 'juga'
- Install the JUGA module: mod_hiddenbyjuga_v1_01
- In Modules>>Site Modules, find the JUGA - Hidden Modules module. Make a copy of it so you always have an original to play with.
- In Modules>>Site Modules, edit the copy of JUGA - Hidden Modules with the appropriate parameters:
- Module Class Suffix: leave this one alone, generally.
- Module Position: this is the module position that you created in step 1. In step 6 you will see what this does.
- Module Style: leave this one alone too, generally.
- JUGA Groups: here, enter the names of the JUGA groups that should have access to the modules you want to restrict. Valid values include variations on (you would, of course, replace these with your own JUGA Group names):
Restricted, Administrator Restricted, Administrator, !Public Access The first one will display the modules to members of the Restricted group and the Administrator group. The second one will display to members of the JUGA-Groups 'Restricted' and 'Administrator' who are NOT members of the JUGA->Group 'Public Access' - Save the JUGA - Hidden Modules module. Remember to place the JUGA - Hidden Modules module in the position where you want the restricted modules to appear.
- In Modules>>Site Modules, edit and place the modules you want controlled by JUGA within the Module Position you created in Step 1.
- Publish the JUGA - Hidden Modules module and voila!
Joomla! v1.5.x - use mod_hiddenbyjuga v1.51 - Install the JUGA module: mod_hiddenbyjuga_v1_51
- In Module Manager, find the JUGA - Hidden Modules module. Make a copy of it so you always have an original to play with.
- In Module Manager, edit the copy of JUGA - Hidden Modules with the appropriate parameters:
- Module Class Suffix: leave this one alone, generally.
- Module Position: this is a module position name. For now, just put 'juga' there. In step 5 you will see what this does.
- Module Style: leave this one alone too, generally it should be "rounded".
- JUGA Groups: here, enter the names of the JUGA groups that should have access to the modules you want to restrict. Valid values include variations on (you would, of course, replace these with your own JUGA Group names):
Restricted, Administrator Restricted, Administrator, !Public Access The first one will display the modules to members of the Restricted group and the Administrator group. The second one will display to members of the JUGA-Groups 'Restricted' and 'Administrator' who are NOT members of the JUGA->Group 'Public Access' - Save the JUGA - Hidden Modules module. Remember to place the JUGA - Hidden Modules module in the position where you want the restricted modules to appear.
- In Module Manager, edit and place the modules you want controlled by JUGA within the 'juga' module position. You may have to type in 'juga' in the Position: field if it doesn't appear in the drop-down list. This is OK.
- Publish the JUGA - Hidden Modules module and voila!
|