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

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 20 2025 00:22:39
Script start
Timing: Jan 20 2025 00:22:39
Module start 'layout'
Timing: Jan 20 2025 00:22:39
Module start 'content'
Timing: Jan 20 2025 00:22:39
Module end 'content'
Timing: Jan 20 2025 00:22:39
Script end

Main resources:

Total runtime0.0153 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 589.2891152.6406
Module start 'layout' 0.00580.0029 741.929739.4766
Module start 'content' 0.00870.0043 781.406397.4922
Module end 'content' 0.01300.0022 878.898442.3047
Script end 0.0152  921.2031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002617.2563140.0002
Check MTime0.00138.2193140.0001
Mysql Total
Database connection0.00117.036410.0011
Mysqli_queries0.002616.892730.0009
Looping result0.00000.104610.0000
Template Total0.001912.110.0019
Template load0.00106.558910.0010
Template processing0.00085.518010.0008
Override
Cache load0.00064.051110.0006
General
dbfile0.00032.016280.0000
String conversion0.00000.051540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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