Skip Navigation

[Closed] I would liek a search view

This support ticket is created 7 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 6 replies, has 2 voices.

Last updated by Luo Yang 7 years, 6 months ago.

Assisted by: Luo Yang.

Author
Posts
#438684

I am trying to: do this layout : hidden link

I visited this URL: hidden link

I expected to see: hidden link

Instead, I got: something half way.

Do you have a guide to re-create your demo layout ?

#438861

Dear Frederic,

The screenshot you mentioned above, seems like this page of Real Estate reference site:
hidden link
I assume we are talking about a View with below two features:
1) A custom search form
2) Google maps

There is a document about the "Real Estate reference site structure":
https://toolset.com/learn/real-estate-reference-site-structure/
And you can setup your own "Real Estate reference site" in discover-wp.com:
http://discover-wp.com/wp-admin/admin.php?page=manage-refsites&refsite=bre
Also you can setup it in your localhost:
https://toolset.com/reference-site/toolset-real-estate/

In your own website:
hidden link
there isn't custom search form, I suggest you follow our document to setup the parameter search form:
Building Custom Searches for Any Content Type
https://toolset.com/documentation/user-guides/front-page-filters/

Hope it help

#439077

Info :
URL : hidden link

I was able to get something close to what I want. I want the markers on the map to refresh via ajax when the user click find & filter. The marker's popup use "Google Map Popup". The map showed fine until I added the Google Map view template.

Here is the Loop Output Editor

[wpv-layout-start]
    [wpv-items-found]
    <!-- wpv-loop-start -->
      <wpv-loop>
		[wpv-map-marker map_id='map-5' marker_id='marker-[wpv-post-id]' marker_title='[wpv-post-title]' marker_field='wpcf-location']
        [wpv-post-body view_template="Google Map Popup"]
        [/wpv-map-marker]
      </wpv-loop>
	<!-- wpv-loop-end -->
	[wpv-map-render map_id='map-5' map_height='400px' cluster='on' street_view_control='off' marker_icon='<em><u>hidden link</u></em>
    [/wpv-items-found]
[wpv-layout-end]	

The Google Map popup

<h5>[wpv-post-link], [types field='plant-location-state'][/types]</h5>
<p><a href="[wpv-post-url]">[types field='image' size='thumbnail' align='none' resize='crop'][/types]</a></p>
<ul>
<li>Flow :[types field='plant-size'][/types] MGD</li>
<li>Cost : $[types field='total-cost'][/types]</li>
</ul>
<a class="btn small" href="[wpv-post-url]"><span><i class="fa fa-eye"></i>View Case Study</span></a>
<a class="btn small" href="[types field='pdf' link='true' output='raw'][/types]"><span><i class="fa fa-download"></i>Download PDF</span></a>

And the Filter Editor :

[wpv-filter-start hide="false"] 
[wpv-filter-controls]
<div class="content col-md-12">
                    <div class="vc_row wpb_row vc_row-fluid vc_custom_1474565052127 vc_row-has-fill vc_row-o-equal-height vc_row-flex" style="background-color: #5c3373;"><div class="wpb_column vc_column_container vc_col-sm-3"><div class="vc_column-inner vc_custom_1474565148421" style="padding : 0px 0px 0px 0px;"><div class="wpb_wrapper"><div id="banner-2440" class="banner  banner-type-2 align-right responsive-fonts valign-middle font-style-light" style="margin-bottom:0px;"><img class="" src="<em><u>hidden link</u></em>" width="270" height="170" alt="map-austin" title="map-austin"><div class="banner-content "><h2 style="font-size: 32px" class="vc_custom_heading banner-subtitle">FIND</h2><h2 style="font-size: 24px;line-height: 1" class="vc_custom_heading banner-title">YOUR CASE STUDIES</h2><div class="content-inner"></div></div></div><style type="text/css">#banner-2440 {background-color: #5c3373;}#banner-2440 img {opacity: 0.3;}#banner-2440:hover img {opacity: 0.5;}</style></div></div></div><div class="wpb_column vc_column_container vc_col-sm-3"><div class="vc_column-inner vc_custom_1474570308514" style="padding-top:5px;"><div class="wpb_wrapper">
	<div class="wpb_text_column wpb_content_element  vc_custom_1474570028032" style="margin-bottom:0px;">
		<div class="wpb_wrapper">
			<p><strong><span style="color: #ffffff;">System Type (s)</span></strong></p>
		</div>
	</div>

	<div class="wpb_text_column wpb_content_element " style="margin-bottom:20px;">
		<div class="wpb_wrapper">
			[wpv-control field="system-type" url_param="system-type" type="select" auto_fill="wpcf-system-type" auto_fill_sort="asc"]

		</div>
	</div>

	<div class="wpb_text_column wpb_content_element  vc_custom_1474570056030" style="margin-bottom:0px;">
		<div class="wpb_wrapper">
			<p><strong><span style="color: #ffffff;">Plan Location (State)</span></strong></p>	
		</div>
	</div>

	<div class="wpb_text_column wpb_content_element " style="margin-bottom:20px;">
		<div class="wpb_wrapper">
			[wpv-control field="plant-location-state" url_param="plant-location-state" type="select" auto_fill="wpcf-plant-location-state" auto_fill_sort="asc"]
		</div>
	</div>
</div></div></div><div class="wpb_column vc_column_container vc_col-sm-3"><div class="vc_column-inner vc_custom_1474569206795" style="padding-top:5px;"><div class="wpb_wrapper">
	<div class="wpb_text_column wpb_content_element vc_custom_1474570064403" style="margin-bottom:0px;">
		<div class="wpb_wrapper">
			<p><strong><span style="color: #ffffff;">Total Cost (USD) | MIN - MAX</span></strong></p>
		</div>
	</div>
<div class="vc_row wpb_row vc_inner vc_row-fluid"><div class="wpb_column vc_column_container vc_col-sm-6"><div class="vc_column-inner "><div class="wpb_wrapper">
	<div class="wpb_text_column wpb_content_element " style="margin-bottom:0px;">
		<div class="wpb_wrapper">
			<p>[wpv-control field="total-cost" url_param="total-cost_min"]</p>
		</div>
	</div>
</div></div></div><div class="wpb_column vc_column_container vc_col-sm-6"><div class="vc_column-inner "><div class="wpb_wrapper">
	<div class="wpb_text_column wpb_content_element " style="margin-bottom:20px;">
		<div class="wpb_wrapper">
			<p>[wpv-control field="total-cost" url_param="total-cost_max"]</p>

		</div>
	</div>
</div></div></div></div>
	<div class="wpb_text_column wpb_content_element  vc_custom_1474570071289" style="margin-bottom:0px;">
		<div class="wpb_wrapper">
			<p><strong><span style="color: #ffffff;">Daily Flow (MGD) | MIN - MAX</span></strong></p>

		</div>
	</div>
<div class="vc_row wpb_row vc_inner vc_row-fluid"><div class="wpb_column vc_column_container vc_col-sm-6"><div class="vc_column-inner "><div class="wpb_wrapper">
	<div class="wpb_text_column wpb_content_element " style="margin-bottom:20px;">
		<div class="wpb_wrapper">
			<p>[wpv-control field="plant-size" url_param="plant-size_min"]</p>
		</div>
	</div>
</div></div></div><div class="wpb_column vc_column_container vc_col-sm-6"><div class="vc_column-inner "><div class="wpb_wrapper">
	<div class="wpb_text_column wpb_content_element " style="margin-bottom:20px;">
		<div class="wpb_wrapper">
			<p>[wpv-control field="plant-size" url_param="plant-size_max"]</p>
		</div>
	</div>
</div></div></div></div>
</div></div></div><div class="wpb_column vc_column_container vc_col-sm-3"><div class="vc_column-inner vc_custom_1474570177442" style="padding-left: 37px;padding-top: 32px;"><div class="wpb_wrapper"><div class="vc_btn3-container vc_btn3-inline" style="margin-bottom:0px;">[wpv-filter-submit name="FIND & FILTER"]</div><br><br>
<div class="vc_btn3-container vc_btn3-inline vc_custom_1474570417686" style="margin-bottom:0px;">[wpv-filter-reset reset_label="Reset" type="input"]</div>
</div></div></div></div>
[/wpv-filter-controls]
[wpv-filter-end]
#439130

I assume we talking about the content template "Google Map Popup",

I can not duplicate same problem, please try this:
1) deactivate other plugins and switch to wordpress default theme, and test again
2) Enable PHP debug mode, copy and paste the debug logs here
PHP Debugging
In case you think that Types or Views are doing something wrong (what we call a bug), you should enable PHP error logging. Again, edit your wp-config.php file and add the following:

ini_set('log_errors',TRUE);
ini_set('error_reporting', E_ALL);
ini_set('error_log', dirname(__FILE__) . '/error_log.txt');
This will produce a file called ‘error_log.txt’ in your WordPress root directory. Make sure that the web server can create and write this file. If it cannot, use an FTP program to create the file and make it writable to Apache (normally, user www-data).
https://toolset.com/documentation/user-guides/debugging-types-and-views/

#439131

Hmmm, the problem is that the map won't display. I can give you access to my WP site.

hidden link

#439134

Please fill below private detail box with login details and FTP access of your test site, you will need to backup your database first, and I will need to deactivate other plugins and switch theme for debug.

#439172

Thanks for the details, I can login your website, but this website is very slow, I have to wait for 5 minutes to open the URL:
hidden link

It is hard to do debug in such a website.

And I can not find the Views shortcode into this page, so I am not sure which one is the problem view. could you point out the problem view URL or View's ID?

And you are using 31 plugins and a custom theme.

And as I mentioned above,
https://toolset.com/forums/topic/i-would-liek-a-search-view/#post-439130
please try this:
1) deactivate other plugins and switch to wordpress default theme. (We need to know if there is any compatibility problem, and I can do it myself, but I need your permission to deactivate plugins and switch themes.)
2) Enable PHP debug mode, copy and paste the debug logs here (We need to know if there is any PHP errors)
PHP Debugging
In case you think that Types or Views are doing something wrong (what we call a bug), you should enable PHP error logging. Again, edit your wp-config.php file and add the following:

ini_set('log_errors',TRUE);
ini_set('error_reporting', E_ALL);
ini_set('error_log', dirname(__FILE__) . '/error_log.txt');
This will produce a file called ‘error_log.txt’ in your WordPress root directory. Make sure that the web server can create and write this file. If it cannot, use an FTP program to create the file and make it writable to Apache (normally, user www-data).
https://toolset.com/documentation/user-guides/debugging-types-and-views/

The topic ‘[Closed] I would liek a search view’ is closed to new replies.