-
Posts
69 -
Joined
-
Last visited
Everything posted by Pitbull
-
How do I retrieve all pages within a certain month/year?
Pitbull replied to ryan's topic in API & Templates
thank you Ryan this is fantastic!! -
the best wishes to Cramer family!! and respect for mister Ryan!!
-
Cant wait!!! the book will be great!!!
-
hi Rjay that would be great thank you!
-
Filter results of selector using select/checkbox?
Pitbull replied to antknight's topic in General Support
Adrian yes this is exactly what i want filter against things like land_area, living_space, number of rooms, number of bedrooms, number of baths, and price. i have seen the search.php, i will try to make this work for me, thank you so much for all your help!! you are amazing! -
Filter results of selector using select/checkbox?
Pitbull replied to antknight's topic in General Support
i am sory i wasnt clear, the search terms is not pagefields is simple fields and is as follows title Property_Type Property_Title Property_Info Property_Description Land_Area Living_Space Rooms Bedrooms WC_Baths Price Images how you believe i should do it? -
Filter results of selector using select/checkbox?
Pitbull replied to antknight's topic in General Support
Adrian thank you so much for all your help!! what i get now its not what i expect i need to have a search form like in Skyscrapers Site so people can search for properties criteria like ( price - type of property - city - town ) but i get this is this what i sould get? -
Filter results of selector using select/checkbox?
Pitbull replied to antknight's topic in General Support
Adrian no errors now!! but i dont see the search form do i need to do something? -
Filter results of selector using select/checkbox?
Pitbull replied to antknight's topic in General Support
Andrian i paste the code you post but: Error: Call to undefined function strip_selected_tags_by_id_or_class() (line 131 of C:\wamp\www\real-estate\site\templates\properties-listing.php) Sorry for the confusion. Do what adrian said here, exclude the image and file fieds. Soma not wory thank you very much and i am sure all the niewbe to read this will thank you too!! -
Filter results of selector using select/checkbox?
Pitbull replied to antknight's topic in General Support
Soma you mean to replace all other code from Adrian or to replace some part with this $form = $modules->get("InputfieldForm"); foreach($page->child()->template->fields as $field) { $form->append($field->getInputfield($page->child())); } echo $form->render(); -
Filter results of selector using select/checkbox?
Pitbull replied to antknight's topic in General Support
so you think is there anyway to make this search to work -
Filter results of selector using select/checkbox?
Pitbull replied to antknight's topic in General Support
Andrian the same Error: Call to a member function getInputfields() on a non-object (line 63 of C:\wamp\www\real-estate\site\templates\properties-listing.php) this is my templates structure First Parent is properties-type-listing.php template Second Parent is properties-categorie-listing.php template { template that code is } Child of properties-categorie-listing.php template is property-detail.php template that the fields i want to search can you post your working code to try it Soma yes i have images field in template property-detail.php -
Filter results of selector using select/checkbox?
Pitbull replied to antknight's topic in General Support
thank you Guys! now i get this error Error: Call to a member function getInputfields() on a non-object (line 63 of C:\wamp\www\real-estate\site\templates\properties-listing.php) my pages tree is: Property Sales (template used is: properties-type-listing.php) ---Houses (template used is: properties-categorie-listing.php) ---Apartments (template used is: properties-categorie-listing.php) ---Villas (template used is: properties-categorie-listing.php) -----Luxury Stone Villa 455tm (template used is: property-detail.php) the search code i used it in template properties-listing.php is this <?php $filter_formcode = ''; if($input->post->filter_save) { // Search selector builder $search_string = ''; $current_field = ''; foreach($input->post as $field_name => $field_result){ if (is_array($field_result)){ foreach($field_result as $f_value){ if($current_field == $pages->get($f_value)->template){ $search_string .= '|' . (int)$f_value; } else{ $search_string .= ',' . $pages->get($f_value)->template . '=' . (int)$f_value; } $current_field = $pages->get($f_value)->template; } } else{ //This is only needed if you want the text search field which is an optional add on below if($field_name == 'body' && $field_result != ''){ $search_string .= $field_name . '%=' . $field_result; } } } $search_string = trim($search_string,','); } else{ $search_string = ''; } $fields = $page->child()->getInputfields(); // Populate with the names of the fields you want to exclude OR include (see instructions below) // Leave empty to output all the fields $myfields = array('id','title','body'); $form = $modules->get('InputfieldForm'); $fields = $filter_form_page->getInputfields(); //This adds a text search field if you want it $field = $this->modules->get('InputfieldText'); $field->attr('id', 'Inputfield_body'); $field->attr('name', 'body'); $field->label = "Search term"; $form->append($field); // If array is not empty use it to filter the fields if ($myfields){ foreach($fields as $f){ // Output all the fields minus the ones listed in the $myfields array // Instead, to output only the fields that are in the array, remove the (!) from the condition if (!in_array($f->name, $myfields)){ $f->value = ''; $form->append($f); } } } else{ // Else, include all the fields $form->append($fields); } // Add find button $field = $this->modules->get('InputfieldSubmit'); $field->attr('id+name', 'filter_save'); $field->attr('value', 'Find'); $field->label = "find"; $form->append($field); // Process the form if($input->post->filter_save) { $form->processInput($input->post); } // render out form $filter_formcode .= $form->render(); $filter_formcode = strip_selected_tags_by_id_or_class('InputfieldPageAdd', $filter_formcode); //Strip out the option to add new item to page field (if this has been allowed through admin) even though it only appears to certain admin users $filter_formcode .= '<script> $(document).ready(function() { $(\'select\').css({"max-width":"270px"}); $(\'li\').removeClass("InputfieldColumnWidth"); $(\'li\').removeClass("InputfieldColumnWidthFirst"); $(\'li\').attr("style", ""); }); </script>'; //set select to max width and remove floating selects so each one on own line $out = ''; $out .= '<div class="col_8">'; $filter_results = $page->children($search_string); if(count($filter_results)==0){ $out .= '<div class="notice error"><i class="icon-remove-sign icon-large"></i> Sorry, there are no results, please change your search parameters.<a href="#close" class="icon-remove"></a></div>'; } else{ foreach($filter_results as $result){ $out .= format_results($result); } } $out .= '</div> <div class="col_4"> <h6>Find a Book</h6> <p>Leave filter options blank for all</p> ' . $filter_formcode . '</div>'; echo $out; ?> my property-detail.php template fields are that i want to serch is: Property_Title Land_Area Living_Space Price -
Filter results of selector using select/checkbox?
Pitbull replied to antknight's topic in General Support
Soma thank you joined in but i dont undarstand how to do what you say what i want to do is this http://processwire.com/talk/topic/3704-advanced-search-form/#entry36045 you have any idea how to build this search form? -
Filter results of selector using select/checkbox?
Pitbull replied to antknight's topic in General Support
2) yes i did change it the error happen when load the page -
Filter results of selector using select/checkbox?
Pitbull replied to antknight's topic in General Support
thank you Andrian! i tried it and now i get: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Error has been logged. and the log file is: 2013-05-29 01:36:15 admin http://localhost/real-estate/ Error: Exception: New page '/real-estate/' must be saved before files can be accessed from it (in C:\wamp\www\real-estate\wire\core\PagefilesManager.php line 167) #0 repated untilunti l#6 1. Does your current page have a child? YES i am think maybe is because of subdomain http://localhost/real-estate/ what do you think? -
thank you Andrian i post an issue here if you can help http://processwire.c...eckbox/?p=35204
-
Filter results of selector using select/checkbox?
Pitbull replied to antknight's topic in General Support
hi Adrian i folow your example code but when i paste it in my template i get this error Error: Exception: New page '/real-estate/' must be saved before files can be accessed from it (in C:\wamp\www\real-estate\wire\core\PagefilesManager.php line 167) #0 C:\wamp\www\real-estate\wire\core\PagefilesManager.php(136): PagefilesManager->path() #1 C:\wamp\www\real-estate\wire\core\PagefilesManager.php(48): PagefilesManager->createPath() and this is repeat until #6 i dont have page '/real-estate/' or template any idea what i di wrong?? thank you! -
Hi forum i need to make a search form to search filter property fields like the Skyscrapers profile i download and try to find out how to do it but i am confused.. the pages layout is like this Property Sales Houses | Maisonettes | Apartments | Villas --Apartments -- Villas -----Luxury Stone Villa 455tm Plots Commercial Properties i need a search engine to search this fields City Town Property Type Property Title it will be perfect if somebody that have made a search form with filters and can find time to post a step by step guide how to do.. (i am so newbie) thank you in advance and sory for my bad english
-
ok!! calendar start to live thank's to you Sakkoulas.. needs some experimental to make it look so nice like yours (time and title dont fit in calendar, image so big) i ques something with css. i like a lot the (Τελευταία Νέα) you build in your site .. was ease to do? my friend Sakkoulas people like you make this forum so wonderful and helpful, thank you for all your help!
-
i am sory i wasnt clear, i mean what templates i need to make to get the events show in calendar, and how to set up the event pages (what fields), i folow the steps you tell me, and right know i only see the working calendar but no events Sakkoulas you are very big help thank you i wiss i could help you some day..
-
thank you Luis, i wait for your magic..
-
thank you Sakkoulas this is the help i need!! thank you so much!! can you please tell me the way you set up the pages tree in admin? so i can try out
-
hi Sakkoulas.. if you can find some time can you please post the way you did it from start, what scripts to load for calendar and the full code you use to work, thank you in advance my friend.. i need a event calendar with (event date, time, image ,map, video) for my site i try to build but i am so lost with this
-
did you manage to build this pideluxe?