Forums / Setup & design / include uri problem
Børge Warvik
Tuesday 07 February 2006 5:43:49 am
This is the pagelayout.tpl:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-GB" lang="en-GB"> <head> <title> (local) <style type="text/css"> @import url({"stylesheets/main.css"|ezdesign}); </style> </head> <body> <!--start body--> <div id="body"> <div id="head"> <h1>Site</h1> </div> {include uri='design:menu.tpl'} <div id="topmenu"> <ul> <li><a href="/">Home</a></li> <li><a href="/">Home</a></li> </ul> </div> <div id="content"> <div id="sidecontent"> sidecolumn </div> <div id="maincontent"> {$module_result.content} </div> </div> <div id="footer"> </div> </div> <!--end body--> </body> </html>
I get this error:
Warning: eZTemplate Feb 07 2006 14:41:19 No template could be loaded for "menu.tpl" using resource "design"
"menu.tpl" is in the same folder as "pagelayout.tpl". Anyone see what I'm doing wrong?
Thursday 09 February 2006 5:13:56 am
I've been working on this problem for some days now, and I'm pretty sure it comes down to what rights are given to the files.
My setup is: Ubuntu (Linux) Apache2 PHP 4.3MySql 4.1
All files are given do the user group "www-data", and most file are given to the user "www-data". The files I've created after installation is given to the user "<myuser>" and group "www-data". <myuser> is part of the user group "www-data".
My question is what priviliges do I need to give to directories and files?
Please help, this has been giving me big problems!
Thursday 09 February 2006 5:53:39 am
This is what I've done, but still get this debug error message:
No template could be loaded for "parts/submenu.tpl" using resource "design"
In my /var/www/ dir I've got a folder called "ez" where my ez files are located. I've given the folder these permissions:
sudo chown www-data:www-data -R ez sudo chmod u+swr ez -R sudo chmod g+swr ez -R sudo chmod o+x ez -R
Can I do something else?