ARG

Members
  • Content count

    4
  • Joined

  • Last visited

Community Reputation

0 Neutral

About ARG

  • Rank
    Newbie
  1. Doable? Ok. I probably missed something. I will digg deeper in the doc. Thank you monchu.
  2. Hello. Sorry in advance for the super basic question, from a total begginer: -when I want to create a new template in the admin, I have to create firstly a ''new.php'' page in the site/template folder. -Is it possible to do the same in an ''_new-include-some-page.php'' in the site/template/include folder? I was thinking to a solution: removing the Include folder, and put all the .php pages in the template folder. But, I am sure I am missing something, and other solutions exist. An advice? Thank you for your time.
  3. Thank you ''fbg13'' I have made the change and everything is fine, now. Maybe this change should be done also in the tutorial?
  4. Hello, I am completely new at PW, (and Php) coming from another CMS. I decided to try to understand the beast, before crafting anything. So, I started from the beginning: the simple web site tutorial. I am trying to output the Home page with Head and footer included in. Here is my Home page code: include("./includes/head.inc.php"); echo "<h1>{$page->title}</h1>"; include("./includes/scripts.inc.php"); include("./includes/foot.inc.php"); Here is my Head.inc.php code: <?php require_once("./includes/functions.inc.php"); ?> <!doctype html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="description" content="<?php echo $pages->get("/site-settings/")->site_meta_description; ?>"> <title><?php echo $pages->get("/site-settings/")->site_meta_description;?></title> <link rel="stylesheet" href="<?php echo $config->urls->templates?>css/simplegrid.css" /> <link rel="stylesheet" href="<?php echo $config->urls->templates?>css/site.css" /> </head> <body> And this the message I got, when I try to view my page: Compile Error: require_once(): Failed opening required 'C:/wamp64/www/processwire-master/site/templates/includes/includes/functions.inc.php' (include_path='.;C:\php\pear') (line 1 of C:\wamp64\www\processwire-master\site\assets\cache\FileCompiler\site\templates\includes\head.inc.php) Any advice would be helpful Thank you for your time.