Jump to content

Timbo

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by Timbo

  1. Oh ok now I'm understanding the Sense of this Site, thanks
  2. Hey, I just did the Basic Website Tutorial and got stuck when i was trying to view the "Site Settings" page which is using the "Site-Settings-Template". Thats probably because the Site-Settings-Template has no file. (Pages using this template are not viewable because the template file (Site-Settings-Template.php) does not exist [no-file].) So what could I do to view the page, and where is the mistake? Thanks
  3. Hahaha damn I knew that was such a dumb noob-error Tanks, next time i will know it
  4. Hey there, I'm on my first website using ProcessWire and I'm not a PHP-Crack So my Problem is: I want to make a horizontal nav menu, where the <li> element has the class="active" for the current page. so here my PHP code: <?php $root = $pages->get("/"); $children = $root->children(); foreach($children as $child) { if($child === $page) { syntaxerror---> echo "<li class="active"><a href='{$child->url}'>{$child->title}</a></li>"; } else { echo "<li><a href='{$child->url}'>{$child->title}</a></li>"; } } ?> anyone got an Idea? Thanks
×
×
  • Create New...