Jump to content

Search the Community

Showing results for tags 'lists'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Welcome to ProcessWire
    • News & Announcements
    • Showcase
    • Wishlist & Roadmap
  • Community Support
    • Getting Started
    • Tutorials
    • FAQs
    • General Support
    • API & Templates
    • Modules/Plugins
    • Themes and Profiles
    • Multi-Language Support
    • Security
    • Jobs
  • Off Topic
    • Pub
    • Dev Talk

Product Groups

  • Form Builder
  • ProFields
  • ProCache
  • ProMailer
  • Login Register Pro
  • ProDrafts
  • ListerPro
  • ProDevTools
  • Likes
  • Custom Development

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL







Found 3 results

  1. Hello, I'm a true beginner at processwire and this is my first post! So first of all I would like to address my cordial greeting to all of you What i want to know is how to handle a bootstrap list with field types in processwire. I could use a simple text input field with commas and cut them for iterating but this is not a good solution. And the other problem is that i also want to implement the bootstrap-tooltip (see attached image file) What is the best solution for this problem? Thank you very much in advance for your answer. regards, Gerald
  2. I'm trying to figure out the best way of turning the below code into something easy for the user to edit without screwing up the source. Would this be best accomplished with php or customising the text editors? <ul class="list1 span6"> <li class="list_title"><span class="bold">Summer</span><span class="pull-right"></span></li> <li><span class="bold">Monday</span><span class="pull-right">10am - 3.45pm</span></li> <li><span class="bold">Tuesday</span><span class="pull-right">10am - 3.45pm</span></li> <li><span class="bold">Wednesday</span><span class="pull-right">10am - 3.45pm</span></li> <li><span class="bold">Thursday</span><span class="pull-right">10am - 3.45pm</span></li> <li><span class="bold">Friday</span><span class="pull-right">10am - 3.45pm</span></li> <li><span class="bold">Saturday</span><span class="pull-right">10am - 3.45pm</span></li> <li><span class="bold">Sunday</span><span class="pull-right">10am - 3.45pm</span></li> </ul> <ul class="list2 span6"> <li class="list_title"><span class="bold">Winter</span><span class="pull-right"></span></li> <li><span class="bold">Monday</span><span class="pull-right">8:30pm - 10pm</span></li> <li><span class="bold">Tuesday</span><span class="pull-right">8:30pm - 10pm</span></li> <li><span class="bold">Wednesday</span><span class="pull-right">8:30pm - 10pm</span></li> <li><span class="bold">Thursday</span><span class="pull-right">8:30pm - 10pm</span></li> <li><span class="bold">Friday</span><span class="pull-right">8:30pm - 10pm</span></li> <li><span class="bold">Saturday</span><span class="pull-right">8:30pm - 12am</span></li> <li><span class="bold">Sunday</span><span class="pull-right">8:30pm - 12am</span></li> </ul>
  3. $jurisdictionsPageChildren = $pages->get(1011)->children(); // Check whether there are any children before attempting to split them if($jurisdictionsPageChildren > 0) { // Some general vars $rows = 2; $totalCount = count($jurisdictionsPageChildren); $rowCount = $totalCount / $rows; // Creating the seperate list (there has to be an easier way to do this) $firstList = $jurisdictionsPageChildren->slice(0, $rowCount); $secondList = $jurisdictionsPageChildren->slice($rowCount, $totalCount) $mainContent .= "<div class='row jurisdictions-list'>"; // First list of elements $mainContent .= "<div class='columns six alpha'>"; foreach($firstList as $child) { $mainContent .= "<h2><a$class href='{$child->url}' title='{$child->title}'>{$child->title}</a></h2>"; } $mainContent .= "</div>"; // Second list of elements $mainContent .= "<div class='columns six omega'>"; foreach($secondList as $child) { $mainContent .= "<h2><a$class href='{$child->url}' title='{$child->title}'>{$child->title}</a></h2>"; } $mainContent .= "</div>"; $mainContent .= "</div>"; // Close the row class } Okay, here is the deal. I have one list ($jurisdictionsPageChildren) which I want to split into multiple blocks/columns. I would like to adjust this code so I can set the $rows variable to some number. The condition is that the first block (regardless of the number of blocks) has to have a class 'alpha' and that every last block has to have a class 'omega'. I was thinking to put a foreach in a foreach, but somewhere things got messed up. If this was JSP it would do it like this: <c:set var="splittedListHere" value="$(rpfn:splitListFunction(listHere, 2))" /> <c:forEach items="splittedListHere" var="list" varStatus="i"> <div class="block$(i.first ? ' alpha' :'')$(i.last ? ' omega')"> more foreach stuff </div> </c:forEach> Any thoughts to make this prettier for a PHP noob are very welcome.
  • Create New...