intranet/internet site

Author Message

jerome fouquereau

Friday 10 March 2006 12:44:27 am

Hi all,

I'm very new on ezPublish and I need some help.

I'm working on a ezPublish site that can be accessed throw intranet or internet. The home pages and some templates are different wether you are connected throw the internet or the intranet.

I really don't know how to redirect internet and intranet users on the correct home page and how to use the correct template wether your are connected on the internet or the intranet site.

Any ideas ?

Thanks for your answers

Jérôme

Felix Laate

Friday 10 March 2006 2:22:40 am

Hi Jerome,

I've done this in a number of scenarios like this:

1) the intranet and internet sites each have their hostname (e.g. intranet.nysite.com and www.mysite.com)

2) <i>settings/override/site.ini.append.php</i> is set up like this (excerpt):

[SiteAccessSettings]
AvailableSiteAccessList[]=www
AvailableSiteAccessList[]=intranet
MatchOrder=host
HostMatchType=map
HostMatchMapItems[]=admin.hero.no;www
HostMatchMapItems[]=info.hero.no;intranet

3) www and intranet have each their siteaccess:

<i>settings/siteaccess/www/site.ini.append.php</i>

[SiteSettings]
SiteName=Mysite
SiteURL=www.mysite.no
IndexPage=/content/view/full/2

Node 2 is the start node of the www site.

<i>settings/siteaccess/intranet/site.ini.append.php</i>

[SiteSettings]
SiteName=Mysite
SiteURL=intranet.mysite.no
IndexPage=/content/view/full/155

Node 155 is the start node of the www site.

4) use different sections for www and intranet and limit access to the intranet section

5) make a seperate pagelayout for the intranet section

That's it! This is only one way to do it, there are plenty more I'm sure.. but I hope it helped you anyway.

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

jerome fouquereau

Monday 13 March 2006 1:19:20 am

Hi Felix
thanks for your answer.
I try your solution and it works.

But I still have problems to limit the acces of some part of the site for the internet.

If you always use anonymous login on both internet or intranet site, how can you limit some part of the site with Section. You should have something like "siteaccess" restriction, instead of restriction based on users and section ?

Do you have an idea to solve this problem ?

regards

Jérome

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 19:23:13
Script start
Timing: Jan 18 2025 19:23:13
Module start 'layout'
Timing: Jan 18 2025 19:23:13
Module start 'content'
Timing: Jan 18 2025 19:23:14
Module end 'content'
Timing: Jan 18 2025 19:23:14
Script end

Main resources:

Total runtime0.9422 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0114 587.9063152.6250
Module start 'layout' 0.01140.0063 740.531339.4453
Module start 'content' 0.01770.9226 779.9766534.6797
Module end 'content' 0.94030.0018 1,314.656312.1719
Script end 0.9422  1,326.8281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.4275160.0003
Check MTime0.00140.1536160.0001
Mysql Total
Database connection0.00150.157810.0015
Mysqli_queries0.869892.3110570.0153
Looping result0.00060.0689550.0000
Template Total0.898495.320.4492
Template load0.00250.268120.0013
Template processing0.895895.077720.4479
Template load and register function0.00030.031310.0003
states
state_id_array0.00130.135510.0013
state_identifier_array0.00310.329720.0016
Override
Cache load0.00190.1967370.0001
Sytem overhead
Fetch class attribute can translate value0.00170.177220.0008
Fetch class attribute name0.00250.267240.0006
XML
Image XML parsing0.00070.077020.0004
class_abstraction
Instantiating content class attribute0.00000.001040.0000
General
dbfile0.00120.1256160.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/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
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/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: 16
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs