Jump to content

lena

Members
  • Posts

    8
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

lena's Achievements

Newbie

Newbie (2/6)

1

Reputation

  1. Thank you grimezy, i tried and I found another method to solve my problem: with slice() $root = $pages->get("/"); $children = $root->children->slice(4, 3); foreach($children as $child) { if($child->id == wire('page')->id) { echo "<li class='active'><a href='{$child->url}'>{$child->title}<span class='sr-only'>(current)</span></a></li>"; } else { echo "<li><a href='{$child->url}'>{$child->title}</a></li>"; } }
  2. Hallo, I need a little help! I build my first processwire website and I don't know how I can choose die pageChildren on the position 5-7 For the children 1-4 I coded for a mainnav and it works. Now I want to do this also for my topnav. But only with the children 5-7. Code for mainnavigation: $root = $pages->get("/"); $children = $root->children("limit=4"); // I get the first 4 pages foreach($children as $child) { if($child->id == wire('page')->id) { echo "<li class='active'><a href='{$child->url}'>{$child->title}<span class='sr-only'>(current)</span></a></li>"; } else { echo "<li><a href='{$child->url}'>{$child->title}</a></li>"; } } Thank you Lena
  3. thank you very much I'll try it. Happy new year to Leipzig. Lena
  4. Thank you, I changed my code to require, it doesn' work. So I try it again with include. But I got the same error. Fehler: Class 'Valitron\Validator' not found (Zeile 35 in /mnt/web116/d3/92/57789292/htdocs/processwire/site/templates/crs-contact2.php) include(dirname(__FILE__) . 'Valitron/Validator.php'); include(dirname(__FILE__) . 'recaptcha/src/ReCaptcha/ReCaptcha.php'); Code 35: $v = new \Valitron\Validator(array( 'name' => $sanitizer->text($input->post->name), 'email' => $sanitizer->email($input->post->email), 'message' => $sanitizer->text($input->post->message), ) ); I tried several links to the directory, but every link output the same error. Have you another idea? Thank you Lena
  5. hello gebeer, thank you for your response. I tried to change it, but in the moment it is not so easy for me. To many new things I have to learn. Maybe you can help me. I tried to put the class: col-sm-8 to an input field. How can I do this? Changing the "item_content" in the class-array didn't work. Webbrowser: <input id="Inputfield_scf_email" class=" required" name="scf_email" type="text" size="60"> Maybe you have an example for a correct array? Many Greetings Lena
  6. Thank you very much, I did it. But know i get this warning: Fehler: class Valitron\Validator not found. The links are correct. Do you have any idea? Greetings from Berlin Lena
  7. Hello justb3a, at the moment I try to build my first website with processwire and so I need a simple contactform. I found your module and it works fine. But I have a problem to fit the module to my bootstrap form. Can you explain me (i'm a beginner) how i can realize this. This would be wonderful. Thanks and many greetings from Berlin
  8. Hello Giannisok, at the moment i try to built my first processwire website. It's fine, but now i have problems to built a simple bootstrap form. You have made a very interesting possibility, but is it possible to make your form without using composer in a simple way? Many thanks Lena
×
×
  • Create New...