Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

12 Good

About jds43

  • Rank
    Full Member

Profile Information

  • Location
    Little Rock, AR

Recent Profile Visitors

2,668 profile views
  1. 😃 looks like that did the trick! Thanks @Ivan Gretsky!
  2. Thanks @Ivan Gretsky So, how would I set that value when I keep getting /events/page2 instead of /events/page2/?publish_until=2020-12-31 when I select the next paginated page for date filtered results?
  3. Hello, I'm trying to paginate results that may have Url Segments and I want to modify the Base Url. How do I accomplish this within renderPager? I found docs here: https://processwire.com/api/ref/markup-pager-nav/render/, but it hasn't pointed me in the right direction. $pager->setBaseUrl(string $url); echo "<div id='pagination' class='uk-container uk-container-medium uk-margin-large-top'>"; echo $matches->renderPager(array( 'nextItemLabel' => "Next", 'previousItemLabel' => "Prev", 'currrentItemClass' => "uk-acti
  4. Hello, I'm trying to list the categories, on the front through select options, that have been selected by page reference field (multiple pages PageArray) on the child pages. Things to Do (would only display three, six, seven, nine in select) -thing one (-category three, -category nine) -thing two (-category six, -category seven) Lodging (would only display one, two, three, four in select) -lodging one (-category one, -category two) -lodging two (-category three, -category four) Dining (would only display five, six, seven, eight in select) -dining one (-category five,
  5. Okay, I'm also using the code below that comes after the foreach: // did we find any matches? if(count($input->get)) { // Find pages that match the selector $results = $pages->find($selector); if(count($results) > 0) { $message .= "<h3 class='uk-h5'>There are <strong>".count($results)."</strong> House Plans</h3>"; } else { $message .= "<h3 class='uk-h5'>Sorry, no results</h3>"; } } else {
  6. Thanks @dragan 'Any' has no value at this point. I just need it as a default selection that would allow all to display. <form class="uk-form uk-padding-large" method="get" action="<?= $page->url; ?>"> <h4 class="uk-h3">Filter Results:</h4> <a class='uk-text-uppercase' href='<?= $page->url; ?>'>Reset Filter</a> <div class="uk-grid uk-grid-small uk-flex-bottom uk-margin-top uk-child-width-1-1 uk-child-width-1-2@s uk-child-width-1-4@m"> <div class=""> <label class="uk-form-label" for="sea
  7. Hello, I have a search page loosely based on Skyscrapers where I'm parsing a selector with options 'beds', 'bathrooms', 'size' fields. It is working well until I select 'Any' after I've run a search. This is where no results are returned (/?beds=&bathrooms=&size=&submit=). I want it to reset and show all results. I hope this isn't too vague.
  8. Thank you @Robin S Allow me to look further at this.
  9. Here's what I have so far, but I'm getting inconsistent results. // Sanitize user input $zipcode = (int) $input->get->zipcode; // Set url for API with sanitized zipcode $link = "https://webapi.test.com/WebAPI/api/v1/test/" . $zipcode; function url_get_contents ($Url) { if (!function_exists('curl_init')){ die('CURL is not installed!'); } $ch = curl_init(); curl_setopt($ch, CURLOPT_HTTPHEADER, array('APIKey:************')); curl_se
  10. Thanks @Robin S I've been trying to cobble resources together to make this work. Just not quite sure of how to convert the json data to a session variable yet.
  11. Hello, I need to find a way to store a json value returned via REST API and use as a session variable, or something of the like. The user is to input their zip code to provide the closest store location, which is an ID that is returned by a get request (this ID is associated with a page). So this closest store location would now be selected to provide unique information to the user.
  12. Hello, Does anyone have experience with migrating content from Django to Processwire? Or are there any suggestions for achieving this?
  13. $main = $promoted->next(); echo "<h5>$main->title</h5>"; This is more concise 👏🏼
  14. $main = ""; $promoted = ""; $promoted = $homepage->promote; $main = $pages->find('template=main')->remove($promoted); foreach($main as $ma) { echo "<h5>$ma->title</h5>"; } This appears to have worked 👍🏼
  • Create New...