Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
systems:joomla:joomla_1.5_template_tutorial [2011/02/09 20:48]
smayr [Guest Only Modules]
systems:joomla:joomla_1.5_template_tutorial [2012/07/12 21:19] (current)
smayr
Line 586: Line 586:
 ==== 2. Placing the position and PHP code in the layout ==== ==== 2. Placing the position and PHP code in the layout ====
  
- # Now, in the same template directory, open the file index.php. This contains the layout of the template. +  # Now, in the same template directory, open the file index.php. This contains the layout of the template. 
-Add the following lines (replacing the name of the position if appropriate) wherever you want that position to be in the layout: <code php>+  # Add the following lines (replacing the name of the position if appropriate) wherever you want that position to be in the layout: <code php>
 <?php <?php
 $user =& JFactory::getUser(); $user =& JFactory::getUser();
Line 608: Line 608:
  
 === References === === References ===
-  * [[http://www.aleixcortadellas.com/main/2009/08/09/hiding-modules-from-registered-users-in-joomla-1-5/|Hiding Modules from Registered Users in Joomla 1.5]]+  * [[http://www.aleixcortadellas.com/main/2009/08/09/hiding-modules-from-registered-users-in-joomla-1-5/|Hiding Modules from Registered Users in  
 +Joomla 1.5]] 
 + 
 +=== Joomla 1.7 - 2.5 === 
 + 
 +==== Create a New User Group in User Manager ==== 
 +  * Create user group ''Guest'' (parent ''Public''). 
 + 
 +==== Create a New Access Group in User Manager ==== 
 +   * Create ACL ''Guest''
 +   * Select group ''Guest''
 + 
 +==== Edit the Public Access Group in User Manager ==== 
 +   * Edit ACL ''Public''
 +   * Select group ''Public'' and ''Guest''
 + 
 +==== Change Access Levels in Articles, Menus, and Modules in Module Manager ==== 
 +   * Select Access = ''Guest'' for those articles or modules that need viewing only by guest users (not Registered). 
 + 
 +=== References === 
 +   * [[http://www.cmsmind.com/joomla-1-7-5-easy-steps-to-create-guest-only-access-to-menus-and-modules|Joomla 1.7.5 easy steps to create guest-only access to menus and modules]] 
 +