Jump to content

Alexander

Members
  • Posts

    108
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Alexander

  1. Su­per­gut. Vielen dank, Luis!
  2. I think, it used only for search result pagination. But I'm interested in between pages navigation. Ex. <- Previous post | Next post->
  3. It would be nice to get something like this http://codex.wordpress.org/Next_and_Previous_Links
  4. <select id='country' data-placeholder="Country" placeholder="Country" name='country'> <option value=''></option> <?php $selOptionsArray = preg_split('/\n/', $fields->country->select_options); foreach ($selOptionsArray as $country) { $parts = preg_split('/:=/', $country); $selected = $parts[0] == $input->whitelist->country ? " selected='selected' " : ''; echo "<option$selected value=\"{$parts[0]}\">{$parts[0]}</option>"; } ?> </select> Great thanks to everybody for your help! So, I'm just trying to make search "select" from select (AKA drop down) module. It's not so easy (:
  5. Sorry for this dummy question, I'm newbie for processwire. I try to make new field for search form from "drop down module" but nothing happens. Take a look: <select id='country' data-placeholder="Country" placeholder="Country" name='country'> <option value=''></option><?php foreach($country as $count){ $selected = $count == $input->whitelist->country ? " selected='selected' " : ''; echo "<option value='$count'>$count</option>";} ?> </select> What am I doing wrong? Cheers, a.
×
×
  • Create New...