Disclaimer handling

Author Message

Milos Rackov

Wednesday 11 August 2004 2:10:32 am

Is there a way in eZ Publisher, either using workflows, or just by using straight group membership to force a disclaimer page on certain groups of users before accessing certain pages.

Example:
If someone has registered from country XY and wants to access a page with financial information, she gets the disclaimer. If the user is from any other country, she can proceed directly to the requested page.

Paul Forsyth

Wednesday 11 August 2004 2:24:41 am

Yes. For this you need to use the trigger content/publish/after which will allow you to, in php, write a workflow event to handle this case.

When the workflow fires you can examing the content object, test if its the one you want first and then examine the country of the user and show a template.

have a look at the workflow docs and come back to this thread if you have problems.

paul

--
http://www.visionwt.com

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 03:15:44
Script start
Timing: Jan 19 2025 03:15:44
Module start 'layout'
Timing: Jan 19 2025 03:15:44
Module start 'content'
Timing: Jan 19 2025 03:15:46
Module end 'content'
Timing: Jan 19 2025 03:15:46
Script end

Main resources:

Total runtime1.2508 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.0077 589.1484152.6250
Module start 'layout' 0.00770.0041 741.773439.4297
Module start 'content' 0.01191.2374 781.2031458.7578
Module end 'content' 1.24920.0015 1,239.96098.1875
Script end 1.2508  1,248.1484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2617160.0002
Check MTime0.00130.1077160.0001
Mysql Total
Database connection0.00100.076610.0010
Mysqli_queries1.206196.4247540.0223
Looping result0.00060.0455520.0000
Template Total1.198495.820.5992
Template load0.00230.181520.0011
Template processing1.196295.631520.5981
Template load and register function0.00020.016110.0002
states
state_id_array0.00230.182110.0023
state_identifier_array0.00340.268320.0017
Override
Cache load0.00180.1436130.0001
Sytem overhead
Fetch class attribute can translate value0.00060.049020.0003
Fetch class attribute name0.00150.119320.0007
XML
Image XML parsing0.00020.017820.0001
class_abstraction
Instantiating content class attribute0.00000.003420.0000
General
dbfile0.00070.0595100.0001
String conversion0.00000.002140.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/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: 10
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs