Hide / unhide depending of the country

Author Message

Jorge estévez

Wednesday 17 December 2008 6:30:46 pm

Hi to all!

I need to detect the country from where the user is reaching the site and depending of the country show/not show some items (products and products categories)

So all my objects will be translated in all languages but some will be seen and some not, the approach that I would like to implement is something like "hide" "unhide" as the administration has (when the father is hidden all its children too, of course) but the difference is to have a hidden/unhidden option for certain combinations of countrys IPs .

I need to know is someone has an approach to this issue, thanks...

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

Jérôme Vieilledent

Wednesday 28 January 2009 1:36:38 pm

Hi Jorge

You may use <i>Sections</i> for that. You can grant access to certain sections for some users...

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 18 2025 16:03:07
Script start
Timing: Jan 18 2025 16:03:07
Module start 'layout'
Timing: Jan 18 2025 16:03:07
Module start 'content'
Timing: Jan 18 2025 16:03:08
Module end 'content'
Timing: Jan 18 2025 16:03:08
Script end

Main resources:

Total runtime0.7775 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.0060 589.3672152.6250
Module start 'layout' 0.00600.0030 741.992239.4453
Module start 'content' 0.00900.7672 781.4375525.1719
Module end 'content' 0.77610.0014 1,306.60948.1563
Script end 0.7775  1,314.7656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4412160.0002
Check MTime0.00140.1739160.0001
Mysql Total
Database connection0.00090.116910.0009
Mysqli_queries0.735794.6240540.0136
Looping result0.00060.0764520.0000
Template Total0.746496.020.3732
Template load0.00260.328220.0013
Template processing0.743895.666020.3719
Template load and register function0.00020.026910.0002
states
state_id_array0.00090.114310.0009
state_identifier_array0.00070.085020.0003
Override
Cache load0.00210.2680110.0002
Sytem overhead
Fetch class attribute can translate value0.00050.061820.0002
Fetch class attribute name0.00150.189930.0005
XML
Image XML parsing0.00080.108220.0004
class_abstraction
Instantiating content class attribute0.00000.001230.0000
General
dbfile0.00090.1116170.0001
String conversion0.00000.001540.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
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs