Forums / Setup & design / IndexPage
Lance Leger
Tuesday 29 April 2003 1:16:22 pm
Greetings,
I would first like to thank the developers of eZ publish for creating an awesome CMS. I'm still trying to put together my first web site using this system, however, I like what I've seen so far. I'm having a a problem using a custom IndexPage (frontpage.tpl) that I've created. I placed the template in the /design/user/templates/node/view directory. When I try to load the index.php I do not see the contents of frontpage.tpl in the body of my web page. From another post I learned that another user was able to create a custom IndexPage file. I'm new to this system so I might not be doing this correctly. I usually try to read the documentation before asking for help, and I haven't been able to find anything that might suggest why this is not working.The contents of frontpage.tpl is really simple:
{*?template charset=utf8?*}This is a test.
Any help would be greatly appreciated!
Thanks,
Lance
Paulo Almeida
Tuesday 29 April 2003 4:11:05 pm
hi
Try placing frontpage.tpl in /design/user/templates. This should work.Confirm you configurations if you are using "user" siteaccess or "demo".
PACPI.COM Internet Consulting http://pacpi.com
Tuesday 29 April 2003 5:16:35 pm
I tried placing the frontpage.tpl file in the /design/user/templates directory and this did not help. I have user set for DefaultAccess and my IndexPage in site.ini.append.php reads IndexPage=/content/view/frontpage. eZ publish is pulling my pagelayout.tpl template from /design/user/templates without any problems. It just doesn't see the frontpage.tpl file when I place it in/design/user/templates/node/view.
Any other suggestions?
Thanks for the help!
Thursday 01 May 2003 2:09:28 am
I've found my mistakes, however, I still have not been able to getthis custom template to load.
I moved my frontpage.tpl file from /design/user/templates/node/view to/design/user/templates/content/view
If I try to load this page manually from my site nothing happens.
Adolfo Barragán
Thursday 01 May 2003 11:22:13 pm
I've created my own view mode (frontpage.tpl) as follow:
1. In <siteroot>/settings/override/site.ini.append.phpDefaultAccess=user
2. In <siteroot>/settings/siteaccess/user/site.ini.append [SiteSettings] IndexPage=/content/view/frontpage/2 DefaultPage=/content/view/frontpage/2 [DesignSettings]SiteDesign=user
3. I have put my "frontpage.tpl" in <siteroot>/design/user/templates/node/view/
And this work for me. I think your problem is because the node_id is missing in your URL and then nothing is retrieve where ez executes the query. So, try using the node_id of root folder (as me).
RegardsAdolfo Barragán