how do you create a login page?

Author Message

Hugh Krogh-Freeman

Friday 01 October 2004 2:06:31 pm

I am working on a site with a support page that is a subtree of the site. How can I restrict access to this node using a login page?

Paul Borgermans

Friday 01 October 2004 2:32:33 pm

Look at the documentation. Basically it boils down to define a section, assign this to your subtree, specify the roles for this subtree/section and assign the roles to users/groups. Then provide a login link somewhere in your pagelayout ans specify the loginpage=embedded in your override for site.ini.

hth

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Mark Marsiglio

Sunday 03 October 2004 3:43:41 am

You don't actually have to create a login page - the link that Paul refers to is just /mysite/user/login. The page is already built in to eZ, you just have to link to it.

There are some settings which determine where users will be redirected once they log in as well. You can change this to the top node in your subtree if that is the only place where they need to log in.

Once you have restricted the content/read permissions, any one who tries to access this page will get the access denied screen unless they have logged in and they are part of a role which has permission to view it.

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 01:32:16
Script start
Timing: Jan 31 2025 01:32:16
Module start 'layout'
Timing: Jan 31 2025 01:32:16
Module start 'content'
Timing: Jan 31 2025 01:32:16
Module end 'content'
Timing: Jan 31 2025 01:32:16
Script end

Main resources:

Total runtime0.0242 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 588.1328151.2109
Module start 'layout' 0.00550.0035 739.3438220.7031
Module start 'content' 0.00900.0124 960.0469997.6953
Module end 'content' 0.02150.0026 1,957.742233.9922
Script end 0.0241  1,991.7344 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002711.3231140.0002
Check MTime0.00114.6938140.0001
Mysql Total
Database connection0.00124.870410.0012
Mysqli_queries0.00218.660530.0007
Looping result0.00000.058210.0000
Template Total0.00228.910.0022
Template load0.00187.480710.0018
Template processing0.00031.431410.0003
Override
Cache load0.00145.871710.0014
General
dbfile0.00031.345680.0000
String conversion0.00000.041440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs