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}>{/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
|