Forums / Setup & design / Specific Content with Specific Site Design: Round 2

Specific Content with Specific Site Design: Round 2

Author Message

RW Wood

Friday 19 September 2003 5:40:58 pm

As I gradually get the hang of version 3, I still haven't seen a solution for this problem: I have a site that is divided into several sections, each representing a country. The site designs for every country are identical with the exception of some minor things like a banner image and colors that are set by a style sheet. I can essentially make changes site wide to the layout by simply changing the pagelayout.tpl that I have set as the "standard". If I plug www.mysite.com/index.php/argentina into the browser, the argentina site design folder gets accessed, and the right image and style sheet are used. If I change to another country in the browser bar, that country's images and stylesheet get used.

The problem is, I want certain articles and other content to be viewable only via one country's site design. In other words, if I post an article on Argentina's beef industry, I don't want it viewable in the Peru site design, but only in the Argentina site design. So far no one has been able to tell me how to accomplish this unless I use many pagelayout.tpl files naming them peru_pagelayout.tpl, etc. That means changing everyone of them eveytime I wan't to make a site wide layout change, add a new include, or whatever.

It seems that there must be a relatively easy way to do this, but as much as I've searched the docs, I have not been able to find an answer. I have everything else, including multilanguages working, but I can't figure out how to separate content based on site design.

Thanks for any and all help.
RWW

Bård Farstad

Monday 22 September 2003 7:46:30 am

Currently this is "not supported" however it's quite possible to do. Normally you should only have one admin with ContentObject locale=eng-GB (or whatever is the main/default translation). Objects created on this admin site will then be visible on all translated sites.

If you then create one admin interface for each site with ConentObjectLocate=nor-NO (your current locale), you will be able to create objects which only are visible in that language.

This works, but it's actually a mis-configuration and not an intended feature. Mabye we can just call it a new feature? ;)

Hope this helps,

--bård

Documentation: http://ez.no/doc

RW Wood

Monday 22 September 2003 8:49:57 am

Bård,

Thanks for your reply, however the language issue for me is not the issue :) What is the issue, is the inability to have, for example, articles related to Argentina show up **only** with the Argentina site design. In version 2, I accomplished this by giving each country its own section, site design, and category. That of course mandated maintaining a pagelayout template for each country.

I was hoping that with the override system, I could get away from separate templates for each site design and only have small pieces to maintain individually.

Isn't there any way to direct ezP to use a specific site.ini.append based on which folder or article is selected?

RW Wood

Monday 22 September 2003 7:37:58 pm

I figured a work around to the problem described in the URL above: replace the folder specific sections with a hard coded url that's then put in an included file. Assign a section to each folder and use an site wide override template for each section that's different. Since fortunately there were only two includes needed for each site design, it wasn't much work.

Hope this helps someone else figure out this problem.
RWW

eZ debug

Timing: Jan 31 2025 03:43:37
Script start
Timing: Jan 31 2025 03:43:37
Module start 'content'
Timing: Jan 31 2025 03:43:37
Module end 'content'
Timing: Jan 31 2025 03:43:38
Script end

Main resources:

Total runtime0.3062 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0076 588.0781370.2734
Module start 'content' 0.00760.0136 958.35161,005.5781
Module end 'content' 0.02130.2849 1,963.92973,895.5391
Script end 0.3061  5,859.4688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00451.4598200.0002
Check MTime0.00130.4297200.0001
Mysql Total
Database connection0.00080.256610.0008
Mysqli_queries0.211869.18491410.0015
Looping result0.00150.48701390.0000
Template Total0.284492.910.2844
Template load0.00080.270410.0008
Template processing0.283692.621210.2836
Override
Cache load0.00060.188710.0006
Sytem overhead
Fetch class attribute can translate value0.00220.712910.0022
XML
Image XML parsing0.00030.086610.0003
General
dbfile0.00672.1837200.0003
String conversion0.00000.001730.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs