Forums / Install & configuration / IndexPage doesn't work when using PathPrefix

IndexPage doesn't work when using PathPrefix

Author Message

Maarten Holland

Friday 18 August 2006 11:43:25 am

Hi all,

Me again with a question. I've created 3 folders for 3 different sites in ezPublish's root folder. In each folder I've created an 'article' called 'home', since I don't want to use the folder itself as home.

- root
- root \ site 1
- root \ site 1 \ home
- root \ site 2
- root \ site 2 \ home etc...

In the site.ini.append.php for the 3 siteaccess I've set PathPrefix to site1, site2 etc so that the foldername is excluded from the URL.

Problem here is that IndexPage doesn't work anymore. I've set that using /content/view/full to the right 'home' node ID, but instead, the folder shows up. I've also tried IndexPage=/home/ and IndexPage=/site1/home/ without success.

Anyone has any ideas?

Thank you,

Maarten

Maarten Holland

Wednesday 23 August 2006 2:19:52 am

Another problem I'm facing: Is it possible to tell double_top.tpl to start in the new site1, site2 folders in stead of node 2? Should I override this template for all 3 sites and replace '2' by the respective node_id, or can I do this another way?

Currently I'm also experiencing some strange problem with override templates. I tried the complete_site package including forums etc.

Now that I've changed the name for the siteaccess, updated Anonymous role to reflect that, and moved the forums to site1 \ examples, the override template doesn't work properly: I see the title and short description for the folder the forums are located in, but I don't see the forums anymore, though override.ini.append.php isn't changed.

Any ideas?

Thanks,

Maarten

Kristof Coomans

Wednesday 23 August 2006 3:36:29 am

Another problem I'm facing: Is it possible to tell double_top.tpl to start in the new site1, site2 folders in stead of node 2? Should I override this template for all 3 sites and replace '2' by the respective node_id, or can I do this another way?

You can use the same template for the 3 sites but read the node ID from an INI file.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Maarten Holland

Friday 25 August 2006 2:59:18 pm

Off course, things can be so simple... The menu is working fine from ini now. Thanks again.

Do you have any idea why the override templates stopped working after changing the siteaccess' name?

Thank you,

Maarten

eZ debug

Timing: Jan 31 2025 06:09:10
Script start
Timing: Jan 31 2025 06:09:10
Module start 'content'
Timing: Jan 31 2025 06:09:10
Module end 'content'
Timing: Jan 31 2025 06:09:10
Script end

Main resources:

Total runtime0.1178 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 588.1797180.8047
Module start 'content' 0.00510.0052 768.984498.1016
Module end 'content' 0.01030.1074 867.0859527.1250
Script end 0.1177  1,394.2109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00302.5664200.0002
Check MTime0.00120.9952200.0001
Mysql Total
Database connection0.00070.625610.0007
Mysqli_queries0.079167.13091410.0006
Looping result0.00090.78231390.0000
Template Total0.107190.910.1071
Template load0.00080.651910.0008
Template processing0.106390.252610.1063
Override
Cache load0.00050.427110.0005
Sytem overhead
Fetch class attribute can translate value0.00050.450710.0005
XML
Image XML parsing0.00020.192710.0002
General
dbfile0.00655.4757200.0003
String conversion0.00000.003430.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.0001 secs