Forums / Setup & design / Setting the default page to a specific node

Setting the default page to a specific node

Author Message

Fabrice Girardot

Wednesday 13 October 2004 2:02:55 am

Hi

I would like to set the default page of my site to a specific node (in my case node id is 153).
I guess I had to use <i>site.ini.append.php</i> and write:

[SiteSettings]
IndexPage=/content/view/sitemap/153

and in <i>override.ini.append.php</i> write

[front_page]
Source=node/view/full.tpl
MatchFile=front_page/my_frontpage.tpl
Subdir=templates
Match[node]=153

Unfortunately, it seems not working at all...

Any ideas?

--
Fabrice

Ted Striker

Wednesday 13 October 2004 2:21:13 am

Did you clear cache after changing?

If it doesn't work, try changing the site.ini file...

Can you feel it Mr. Anderson? Closing in on you? Oh I can, I really should thank you after all. It was, after all, it was your life that taught me the purpose of all life. Purpose of life is to end.

Silke Fox

Wednesday 13 October 2004 2:22:06 am

Hi Fabrice,

your override definition doesn't match the IndexPage setting, as you're override the "full" view but not the "sitemap" view.
You might want to change

IndexPage=/content/view/sitemap/153

to

IndexPage=/content/view/full/153

(or change the override setting to node/view/sitemap.tpl).

You should also consider to change the DefaultPage as well, see
http://ez.no/ez_publish/documentation/configuration/configuration/tips_tricks/setting_default_page

Fabrice Girardot

Wednesday 13 October 2004 2:47:01 am

Yes, thank you! it works... but not like I want... I should try to explain:

this "Front page" is in a sub folder...

MainFolder1
- FrontPage
- folder2
- folder3
- ...

and I want the Path to be displayed like : "MySite/MainFolder1/FrontPage". Instead, it displays only "MySite" :(

do you see my problem?

--
Fabrice

Silke Fox

Wednesday 13 October 2004 6:53:42 am

I'm not sure what you're looking for...

Do you want to add a general breadcrumb navigation to your site?
You could add something like this to your pagelayout.tpl then:

{section name=Path loop=$module_result.path offset=2}
	{section show=$Path:item.url}
		<a href={$Path:item.url_alias|ezurl}>{$Path:item.text|shorten(50)}</a>
	{section-else}
		{$Path:item.text|shorten(50)}
	{/section}
	{delimiter}&gt;{/delimiter}
{/section}

Or is it just for your frontpage that you want to have this?
You might add something similar with $node.path or $node.path_array in your override template.

hth
silke

Fabrice Girardot

Wednesday 13 October 2004 8:26:35 am

Yes, that's it. The path is on pagelayout.tpl, and I want to display the correct page path <i>mysite/news/frontPage</i> instead <i>mysite/</i>.

--
Fabrice

Kåre Køhler Høvik

Monday 25 October 2004 4:46:02 am

At what node you want to display : mysite/news/frontPage ?
mysite or frontPage ?

Kåre Høvik

Fabrice Girardot

Monday 25 October 2004 5:01:24 am

Hi Kåre

I want to display this path on the node 2 (home page).
Well, The best thing would be to redirect the home page to node 153, and so, display the correct path...

--
Fabrice

eZ debug

Timing: Jan 19 2025 20:03:17
Script start
Timing: Jan 19 2025 20:03:17
Module start 'content'
Timing: Jan 19 2025 20:03:18
Module end 'content'
Timing: Jan 19 2025 20:03:18
Script end

Main resources:

Total runtime0.9549 sec
Peak memory usage4,096.0000 KB
Database Queries213

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 589.0859180.8125
Module start 'content' 0.00680.8237 769.8984688.9766
Module end 'content' 0.83050.1243 1,458.8750340.4297
Script end 0.9548  1,799.3047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.4616210.0002
Check MTime0.00150.1563210.0001
Mysql Total
Database connection0.00090.098710.0009
Mysqli_queries0.853889.40982130.0040
Looping result0.00230.24032110.0000
Template Total0.922996.620.4614
Template load0.00200.207520.0010
Template processing0.920996.439420.4604
Template load and register function0.00020.025410.0002
states
state_id_array0.00100.106710.0010
state_identifier_array0.00150.152320.0007
Override
Cache load0.00170.1771580.0000
Sytem overhead
Fetch class attribute can translate value0.00170.179750.0003
Fetch class attribute name0.00110.1129110.0001
XML
Image XML parsing0.00550.579950.0011
class_abstraction
Instantiating content class attribute0.00000.0027140.0000
General
dbfile0.01111.1583380.0003
String conversion0.00000.000630.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
6content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
20content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
9content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
5content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 50
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs