Amazing! This definitely made the magic happen. You're amazing, thank you so much for your help! ![]()
- ProcessWire Support Forums
- → Viewing Profile: Posts: tinacious
Community Stats
- Group Members
- Active Posts 66
- Profile Views 995
- Member Title Full Member
- Age Age Unknown
- Birthday Birthday Unknown
-
Gender
Female
-
Location
Toronto, Canada
-
Interests
ProcessWire! Web design & front-end development, Responsive Design, Accessibility, WordPress, Drupal, PHP frameworks.
User Tools
Latest Visitors
Posts I've Made
In Topic: Sort by date range
10 April 2013 - 08:33 PM
In Topic: Sort by date range
10 April 2013 - 07:42 AM
Hey Ryan,
Thanks for your help. Here's the HTML I'm using. The text inputs are jQuery UI datepickers.
<div class="filters">
<h3><a href="#">Date Filters</a></h3>
<form action="<?php echo $page->url?>" method="post">
<div class="inputs">
<label for="date_start">From</label>
<input type="text" id="date_start" value="">
<label for="date_end">To</label>
<input type="text" id="date_end" value="">
<input type="submit" value="Filter Date" class="button">
</div>
</form>
</div>
<?php
if($input->post->date_start) {
$startdate = strtotime($input->post->date_start);
if($startdate) $selector = "date_start>=$startdate";
}
if($input->post->date_end) {
$enddate = strtotime($input->post->date_end);
if($enddate) $selector = "date_end<=$enddate";
}
I'm not doing this correctly I'm sure, I don't have much experience with creating forms in ProcessWire. Visual attached.
Hopefully it doesn't add confusion but the HTML id's for the inputs are the same as their field name in ProcessWire.
In Topic: Can I limit page editing to the user that created that page?
08 April 2013 - 07:47 AM
Thanks everyone! Such swift responses from the ProcessWire community, love it! ![]()
In Topic: Default landing page for specific role
07 April 2013 - 11:34 AM
You're right, making my own login form got the job done way easier. I should've just done that from the start... The first link helped. Thanks!
In Topic: Default landing page for specific role
06 April 2013 - 08:06 PM
I had a mistake in my code (corrected). In a module (class), we need to write $this->pages.
So:
$this->session->redirect($this->pages->get(1)->url);Does it work?
Thanks but that doesn't work either.
- ProcessWire Support Forums
- → Viewing Profile: Posts: tinacious
- Privacy Policy





Find content