Thanks for that Will. I'm happy to use the ACL to control access to
particular nodes but really wanted a way to change the actual content
displayed on a particular page dependant on which user was logged in. We
will be controlling access using LDAP authentication and permissions
using the LDAP groups setup within the security groups tab. Is there any
way of getting a handle on what groups the logged in user belongs to
from the Freemarker template?
 


>>> On 30/03/12 at 22:08, Will Scheidegger <[email protected]>
wrote:

Hi Jon

You can hide or show stuff easily by using the ACL, i.e. restricting
access to nodes to certain groups and have all nodes displayed on your
page. If user A loges in, only his nodes will be displayed and so on*

If you want to do this programmatically instead of using the ACL you
can easily get the current user from MgnlContext (which is also
accessible from the Freemarker template (${ctx.user}).

-will

On 30.03.2012, at 17:33, Jon RINGWOOD PSE 55500 wrote:



Is it possible to personalise sections of a web site in Magnolia? For
instance, a user logs into the public instance and gets a particular
list of links depending on what Group (LDAP group) they belong to? If
they were members of the 'West' group then they would see Links-West and
if they were 'East' then obviously Links-East. 
 
Is there a way to get a handle on the logged in user and the groups
that the user belongs to within the Freemarker template code? If so how
might this be achieved? 
 
I'd really appreciate any advice on this as it could be a major
showstopper in our intranet development plan.
 
Thanks
 
Jon R


----------------------------------------------------------------
For list details, see
http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------
This email and any other accompanying document (s) contain information
from Kent Police, which is confidential or privileged.  The information
is intended to be for the exclusive use of the individual(s) or bodies
to whom it is addressed. The content including any subsequent replies
could be disclosable if relating to a criminal investigation or civil
proceedings. If you are not the intended recipient, be aware that any
disclosure, copying, distribution or use of the contents of this
information is prohibited. If you have received this email in error,
please notify us immediately by contacting the sender or telephoning
01622 690690.



----------------------------------------------------------------
For list details, see
http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to