Jump to content

Roych

Members
  • Posts

    389
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Roych

  1. Sorry for not being clear enough. I would like to style my form created in SimpleContactForm module. But I can't figure it out how from those instructions. Where and how should I change classes in my code. expl. My code for showing a form now, looks like this. <?php echo $modules->get('SimpleContactForm')->render(); ?> this is giving me some basic style from PW. How do I change those styles so it would look like the form posted in first post? I tried and played with this $scf = $modules->get('SimpleContactForm'); $options = array( 'markup' => array( 'list' => "<div {attrs}>{out}</div>", 'item' => "<p {attrs}>{out}</p>" ), 'classes' => array( 'form' => 'form form__whatever', 'list' => 'list-item' ) ); echo $scf->render($options); but can't figure it out how this should work. There is no changes no mather what I do ... And where is the Style for submit button etc.? I hope I was more clear this time. Thank you R
  2. Works great thank you R
  3. Hello, Im having some problems with simple contact form styling. I tried everything but just don't get it. I went throu THIS pages but can't figure it out what should I actually do to make it the way I want. I tried and played with this but no success. Im not a coder but understand some ... My HTML looks like this: <form action="#" method="post"> <div class="input-field"> <input type="text" name="name" class="form-control" placeholder="Your Name..."> </div> <div class="input-field"> <input type="email" name="email" class="form-control" placeholder="Your Email..."> </div> <div class="input-field"> <input type="text" name="Phone" class="form-control" placeholder="Phone Number..."> </div> <div class="input-field"> <textarea name="message" class="form-control" placeholder="Messages..."></textarea> </div> <button type="submit" id="submit" class="btn btn-blue btn-effect">Send</button> </form> Any help is appreciated. Thank you R
  4. Works great, only sorting is wrong, it won't show last three. Thank you R
  5. The upper didn't quite work for me was a good starting point found this and it works great but how do I limit it to only 3 last events. <?php $Events = $pages->get('/Events/')->Events_repeat->getArray(); foreach ($Events as $key => $events) { ?> <div class="col-md-4 wow animated bounceInRight"> <div class="hovereffect"> <img src="<?=$events->Event_slika->first->url ?>" width="100%" class="img-responsive" style="border: 9px solid white;"> <div class="overlay"> <h2><?=$events->Event_slika->first->description ?></h2> </div> </div> </div> <?php if ($key == 2) { break;} }; ?> Thank you R
  6. Hello, I'm new to PW and like it already I have just created my first site with PW and need some help getting repeater posts from one page to expl. home page. I have a page called Events with template events.php . Page has a repeater field called Events_repeat. Now I would like to show last three events on a homepage, how do I do that. I have tried with: <?php foreach ( $pages->find('template=events, limit=3') as $event ):?> <div class="hovereffect"> <img src="<?=$event->images->first->url ?>" width="100%" class="img-responsive" style="border: 9px solid white;"> <div class="overlay"> <h2><?= $event->images->description->first ?></h2> </div> </div> <? endforeach; ?> But it doesn't work, what am I doing wrong. I tried to look on a forum but couldn't find anything helpful really. Thank you very much R
  7. Nice, thank you, works perfect R
  8. Hello, I'm new to PW and need some help. I created a simple gallery which is working fine, but I can't figure it out how to create some styling for pagination. I use this for pagination: <?= $a->renderPager() ?> My html look like this: <div class="numeric-pagination"> <a href="#" class="button"><i class="icons icon-left-dir"></i></a> <a href="#" class="button">1</a> <a href="#" class="button active-button">2</a> <a href="#" class="button">3</a> <a href="#" class="button"><i class="icons icon-right-dir"></i></a> </div> I hope you understand what I want to create. Thank you R
  9. Hello thank you I'm glad I'm here This cms can actualy give me what I need Thank you #Gebeer I tried what you've said and I just had to put in the code from https://processwire.com/talk/topic/5680-bootstrap-3-navigation-with-multiple-leveltier-fix/ without function.php and it's working great so far. I tried with your code above but didn't work at all, the site got internal error. Or did I do something wrong? Did axactly what you've said.. Thank you very much R
  10. Hello I'm totaly new to PW and for now I find it very understanding, all but navigations. I tried to find some videos or tutorials explaining about this but noting helpfull comes up. I read i most of the tutorials on the forum that I could find but stil cant find the right answer. I'm making my first template and need your help on how do I create a menu like this in WP. I'm not a coder ... but understand a little. <ul class="nav navbar-nav"> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Home <i class="fa fa-angle-down"></i></a> <ul class="dropdown-menu"> <li><a href="index-1.html">Masonry</a></li> <li><a href="index-3.html">Masonry v1</a></li> </ul> </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Pages <i class="fa fa-angle-down"></i></a> <ul class="dropdown-menu"> <li><a href="about-us.html">About Us</a></li> <li><a href="services.html">Services</a></li> </ul> </li> </ul> right now I'm here but it's not working right. <ul class="nav navbar-nav"> <?php $root = $pages->get("/"); function visit(Page $parent, $enter, $exit=null) { foreach ($parent->children() as $child) { call_user_func($enter, $child); if ($child->numChildren > 0) { visit($child, $enter, $exit); } if ($exit) { call_user_func($exit, $child); } } } visit( $pages->get(1) , function(Page $page) { echo '<li class="dropdown"><a href="' . $page->url . '" class="dropdown-toggle" data-toggle="dropdown">' . $page->title; if ($page->numChildren > 0) { echo '<ul class="dropdown-menu"> <li><a href="$page->url"></li> '; } else { echo '</a>'; } } , function(Page $page) { echo '</li>'; if ($page->numChildren > 0) { echo '</ul>'; } } ); ?> And I want my HOME page also to be shown. Any ideas? Thank you in advance R.
×
×
  • Create New...