Jump to content


  • Content Count

  • Joined

  • Last visited

Everything posted by ank

  1. I'm stuck here how do i call a field from the page into the module ShoppingCheckout i want to have extra text fields in every step of the checkout process that can be filled in in the back-end. thanks, ANK
  2. Hello did you find a solution, i'm looking for exact te same solution and cannot find it. I do mostly frontend so i'm a beginner in php and i'm stuck here.
  3. ank


    this is exact the same code as in my html page before i made a template of it. this is the complete header.inc <!doctype html> <html class="no-js" lang="nl"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> <title><?=$page->title?></title> <link href='http://fonts.googleapis.com/css?family=Ubuntu:300,500|Lusitana' rel='stylesheet' type='text/css'> <link rel="stylesheet" type="text/css" href="<?php echo $config->urls->templates?>assets/css/main.css" /> <link rel="stylesheet" type="text/css" href="/assets/css/jquery.fancybox.css?v=2.1.5" media="screen" /> <link rel="stylesheet" type="text/css" href="/assets/css/jquery.fancybox-thumbs.css?v=1.0.7" /> <!--[if lte IE 8]> <link rel="stylesheet" type="text/css" href="<?php echo $config->urls->templates?>assets/css/ie8-and-down.css" /> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <script type="text/javascript" src="/assets/js/respond.min.js"></script> <![endif]--> </head> <body> <div class="page-wrap"> <header> <div class="logodiv"> <a href="/"> </a> </div> <div id="topnavbar"></div> <nav class="animenu"> <button class="animenu__toggle"> <span class="animenu__toggle__bar"></span> <span class="animenu__toggle__bar"></span> <span class="animenu__toggle__bar"></span> </button> <ul class="animenu__nav"> <?php $homepage = $pages->get("/"); $children = $homepage->children; $children->prepend($homepage); foreach($children as $child) { $class = $child === $page->rootParent ? " class='active'" : ''; echo "<li><a$class href='{$child->url}'>{$child->title}</a></li>"; } ?> </ul> </nav> </header>
  4. ank


    i am working on my first processwire project, and i love it. but i can't get respond.js working (i use it for IE7 and 8). It works fine on pure html pages, but when in convert the html to templates in processwire it seems not to work anymore. Has someone experience with this ? thanxs ank
  5. I meant not leaving off te closing ?> but in the code suggested there was just a "?" missing before ">" on the last rule, which causes errors in the output. It was just a type error i think. Thank you so much for your help !
  6. thank you very much , it worked exept for the last rule, a question mark was missing ?> now i can explore more possibilities of processwire and try extend this piece of code.
  7. Hey, i'm just started with Processwire, followed the tutorials and every basic thing i try seems to work, better than i expected. I already love Processwire and it's many possibilities. But now i have a very complicated (althrough for a beginner) situation. I want to get te children of a page (exist only out an image and title) and under the title and image of the children the titles and urls of the children of these children: Page Child 1 - Title - Image Child 1 of Child 1 - Title -Url Child 2 of Child 1 - Title -Url Child 3 of Child 1 - Title -Url Child 2 - Title - Image Child 1 of Child 2 - Title -Url Child 2 of Child 2 - Title -Url Child 3 of Child 2 - Title -Url Child 3 - Title - Image Child 1 of Child 3 - Title -Url I tried many diffrent ways, but it does not work at all! (i just get nothing on the page) Its getting to difficult for me as a beginner, i ended up with the following code: <?php $pagename = $page->child->title; foreach($page->children as $headimage) { $thumb = $headimage->size(600, 400); $pagename = $page->child->title; echo "<div class='section'>"; echo "<a href='$page->child->url'>"; echo "<div class='sectionimage'>"; echo "<div class='image'>"; echo "<img src='$thumb->url' alt='$headimage->description'></img>"; echo "</div>"; echo "<div class='caption'>"; echo "<p>'$page->$child->title'</p>"; echo "</div>"; echo "</div>"; echo "</a"; echo "<div class='brands'>"; echo "<ul>"; foreach($page->children->children as $childchild) { echo "<li><a href='$childchild->url'>'$childchild->title'</a></li>"; } echo "</ul>"; echo "</div>"; echo "</div>"; } ?> what am i doing wrong ? thanks.
  • Create New...