Forums / Setup & design / Want "You are not logged in" instead of "Welcome, Anonymous"
Jürnjakob Dugge
Thursday 23 November 2006 3:19:57 am
Hey everyone,
I understand that the anonymous user is ez's way of managing visitors who are not logged in or do not have an account. Yet I believe that this will lead to some confusion with users who do not know the internals of ezpublisher: Your average page visitor who just wants to browse your site and stumbles across some section they do not have permission to view would probably be better served by getting a page that says "You are not logged in and are thus not able to view this content. Log in _here_. Do not have an account? Get one _here_.". Also, when people who do have an account come to the page, they are greeted with a "Welcome, Anonymous User. _Logout_". To me, this is just a fancy way of saying "You are not logged in. _Log in_", which I would much prefer.Did I massively misgrasp some concept here, or is there some way of getting the aforementioned behaviour?
Thanks.Jake
Claudia Kosny
Friday 24 November 2006 4:22:51 pm
Hi Jake
Depending on what you want to do you can override the template for access denied (\design\standard\templates\error\kernel\1.tpl ) Please note that unfortunately there are no override conditions for this, so you can just create on override for the entire siteaccess.
I am not sure what you mean when you say that users with an account have somewhere a message like "Welcome, Anonymous User. _Logout_". If they are logged in they are not anonymous anymore and should be greeted with their name. If they are not logged in they are the same as an anonymous user. EZ cannot know whether a visitor has an account until this visitor logs in. Thus they cannot have a 'logout' link as long as they are not logged in.
Greetings from Luxembourg
Claudia