Can I automate the login with querystring variables?

Author Message

Graham Tillotson

Tuesday 16 September 2003 5:52:48 am

Need a bit of newbie direction here -- I want to link into ezPublish with querystring variables and log users into specific roles. I need to manage content by state (Illinois and Michigan), so I want to process values such as 'IL' and 'MI' and map users to roles:

Anonymous-IL
Anonymous-MI

Can someone point me in the right direction for this sort of change?

Thanks,
GRT

DUO : CONSULTING
Web content management experts
www.duoconsulting.com

Paul Borgermans

Tuesday 16 September 2003 9:22:25 am

You don't need to do that with query strings, the url is good enough.

You will need to study the docs about site configuration to direct users to either a Illinois or Michigan virtual site (siteaccess in ez publish) based on the url.

So if from the origin site you know to direct users to Illinois, let them point to

http://yoursite.com/il/url-to-the-real-content

for Michigan you can use

http://yoursite.com/mi/url-to-the-real-content

Take a look at the URI section in
http://ez.no/developer/ez_publish_3/documentation/installation_and_configuration/configuration/site_access

But perhaps it can be done even simpler by using sections/nodetrees (if the content for both is much different)

hth to get you started

-paul

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

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 19 2025 01:02:58
Script start
Timing: Jan 19 2025 01:02:58
Module start 'layout'
Timing: Jan 19 2025 01:02:58
Module start 'content'
Timing: Jan 19 2025 01:02:59
Module end 'content'
Timing: Jan 19 2025 01:02:59
Script end

Main resources:

Total runtime0.8282 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0092 590.5391152.6563
Module start 'layout' 0.00920.0054 743.195339.5078
Module start 'content' 0.01460.8120 782.7031533.8516
Module end 'content' 0.82660.0016 1,316.55478.1094
Script end 0.8282  1,324.6641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.4591160.0002
Check MTime0.00150.1811160.0001
Mysql Total
Database connection0.00270.326310.0027
Mysqli_queries0.767592.6662540.0142
Looping result0.00060.0780520.0000
Template Total0.777993.920.3890
Template load0.00420.508120.0021
Template processing0.773793.417920.3868
Template load and register function0.00010.012710.0001
states
state_id_array0.00270.323210.0027
state_identifier_array0.00120.142820.0006
Override
Cache load0.00330.3962230.0001
Sytem overhead
Fetch class attribute can translate value0.00100.124820.0005
Fetch class attribute name0.00150.181240.0004
XML
Image XML parsing0.00110.132020.0005
class_abstraction
Instantiating content class attribute0.00000.000840.0000
General
dbfile0.00100.1267230.0000
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs