Forums / Setup & design / How to link section to siteaccess???

How to link section to siteaccess???

Author Message

Jens Tiedemann

Tuesday 26 September 2006 12:33:56 pm

Hi, we are a company with an international headquarter - and several local country organizations.

So, we're evaluating eZ Publish to see, if we can build a site with one "International" - and several "country" siteaccess's. Most of the content will be from the "International" site - but when users enter through one of the "country" siteaccess's, they should see the added local content.

Creation of local content, as well as administration of local users, will be done locally in the individual countries.

We think we can use "sections" as the "governing" method to implement the above - using individual sections for both local content - and local user groups. And then give admin rights to select "country administrators" in the countries - with a sector restriction in the roleassigment - in order to let the do the administration of local content and local users.

But we have two challengers we've not been able to solve:

1. How do we "open up" for the local section for an anonymous visitor entering through the country site access - while still also showing the "international" section content??

2. How can a country administrator add local content to the "international" section - but only flagged as being in the "contry" section (which is the only section the country admin can add content in)

Can anybody help?

Best regards

Jens Tiedemann

Tony Wood

Tuesday 26 September 2006 1:40:43 pm

Hi Jens,

First, you made the right choice in looking at eZ.

For your issue. The first thing we do in these types of sites is to create folder locations for each country. You can then set the index and default nodes for each siteaccess to the top folder for each location.

The issue with security rights, that should be a case of adding additional locations for content. You can then use subtree security in the roles and permissions to handle the access.

Does this answer your question?

Tony

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Jens Tiedemann

Wednesday 27 September 2006 11:05:07 am

Thanks Tony - We played around following your lead today, and have now set up the following folder structure:

Main
International
Products
Partners
Support
US
Products (add location from International)
Partners (add location from International)
Support (add location from International)
Local US
XX...... (more country folders)

Then defined the siteaccess folders and site.ini.append.php in siteaccess folders - and updated the override site.ini.append.php to include the new siteaccess's.

A couple of questions remain though:

1. How do we point the country siteaccess's to the country folders. Right now, you always end up in the "Main" folder going in through the country siteaccess's (ex: xxx/us)? So how/where do you set the index/default node for a siteaccess (right now we're running on localhost - so no external url resolution)

2. We can add the international subfolders to the country main folders by using ”add location”. But how do we set priorities in the country folders? (the priorities button is not enabled in the sub items view)?

3. How do we hide the (empty) Main node, so users can't go there (for example by using the breadcrums)?

It looks promising - but we need to fix those issues to move on. So any help appreciated!

Thanks

Jens

Jens Tiedemann

Wednesday 27 September 2006 11:07:09 am

structure did not format correctly above... it's not flat, but as follows:

Main
-----International
----------Products
----------Partners
----------Support
-----US
----------Products (add location from International)
----------Partners (add location from International)
----------Support (add location from International)
----------Local US
-----XX...... (more country folders)

Tony Wood

Wednesday 27 September 2006 11:22:43 am

1. How do we point the country siteaccess's to the country folders. Right now, you always end up in the "Main" folder going in through the country siteaccess's (ex: xxx/us)? So how/where do you set the index/default node for a siteaccess (right now we're running on localhost - so no external url resolution)

[tony] Use the ini setting
http://ez.no/doc/ez_publish/technical_manual/3_8/reference/configuration_files/site_ini/sitesettings/indexpage

2. We can add the international subfolders to the country main folders by using �add location�. But how do we set priorities in the country folders? (the priorities button is not enabled in the sub items view)?
The priorites should be set. You can set prioirty on any folder or article as long as it is a container.

3. How do we hide the (empty) Main node, so users can't go there (for example by using the breadcrums)?
See
http://ez.no/doc/ez_publish/technical_manual/3_8/reference/configuration_files/site_ini/sitesettings/indexpage
for the index page. You can ensure only the pages you want are seen.

Tony

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

eZ debug

Timing: Jan 19 2025 06:09:03
Script start
Timing: Jan 19 2025 06:09:03
Module start 'content'
Timing: Jan 19 2025 06:09:04
Module end 'content'
Timing: Jan 19 2025 06:09:04
Script end

Main resources:

Total runtime1.7316 sec
Peak memory usage4,096.0000 KB
Database Queries200

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 588.9766180.8281
Module start 'content' 0.00571.5622 769.8047580.1406
Module end 'content' 1.56790.1636 1,349.9453341.3984
Script end 1.7315  1,691.3438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.2322210.0002
Check MTime0.00140.0820210.0001
Mysql Total
Database connection0.00070.039610.0007
Mysqli_queries1.636194.48602000.0082
Looping result0.00240.13611980.0000
Template Total1.703198.420.8515
Template load0.00220.128920.0011
Template processing1.700998.225920.8504
Template load and register function0.00030.015010.0003
states
state_id_array0.00160.091010.0016
state_identifier_array0.00130.075120.0007
Override
Cache load0.00180.1066670.0000
Sytem overhead
Fetch class attribute can translate value0.00150.085130.0005
Fetch class attribute name0.00200.116660.0003
XML
Image XML parsing0.00130.072930.0004
class_abstraction
Instantiating content class attribute0.00000.001270.0000
General
dbfile0.00700.4035270.0003
String conversion0.00000.000430.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 24
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs