October 15, 2013 at 7:55 pm #33860
Do you have any documentation or advice on how to change the form to results orientation?
I have created the custom forms and results templates and that’s working as expected.
I would like to layout my page so that the map is wide across the top of the pagination controls and the search form is in a column next to the results on the same page.
I’ve tried putting the short codes for form and results in div columns but that didn’t work. When I tried to use the widget to put the form in the sidebar the results disappear.
Also, in my results the addresses are not properly formatted. There should be commas between address, city, state but it’s all run together.October 15, 2013 at 9:42 pm #33872
1) I am trying to picture the way you want to display the search form and results.
So you want to have the top pagination and below it the map which will both will be displayed across the page and below it you want to have two columns which the left one will be the search form and the right column will be the list of results?
2) the default address being displayed is the one was entered by the user or admin when the location was created. However, instead if the function that displays the address you can echo the custom field _wppl_formatted_address to display the address the way google returned it when the location was saved. The formatted address includes commas.October 15, 2013 at 9:46 pm #33871
Actually, you can simply use:
<?php echo $post->formatted_address; ?>
in the loop to display the formatted addressOctober 16, 2013 at 12:10 am #33870
$post->formatted_address worked perfectly, thanks!
Crude mock up attached to illustrate layout.October 18, 2013 at 7:46 am #33869
Apologies for the delay Nick.
I have never tried your idea but i am sure we can come up with a solution. To begin with , i believe that you can have the search form in one column and the results in the other column.
Create a new shortcode (or edit the one you are using) and in the ” Results page” setting instead of “–same page–” choose the page where you are going to have the search form.
Then in that page have the main shortcode ([gmw form=”1″]) in one column or div and in the next column have the results shortcode [gmw_results]. I believe that having it that way you can have the search form and results the way you want.
Now, to have the map above the two will be tricky.
I will look for a solution and let you soon.
I guess for now you can try the above and let me know if it works?
EyalOctober 18, 2013 at 5:31 pm #33868
I’m having trouble using the option to display results in another page.
I have my pages arranged in a hierarchy and unless I put the results page in the root, the form doesn’t resolve properly.
For example, I have the following page hierarchy….
If I select Service 1 as the result page, when I click the form submit, it should resolve to mydomain.com/services/service-1/ but instead it tries to show results in mydomain.com/service-1/ and of course that page does not exist.October 18, 2013 at 6:18 pm #33867
I will test it on my site today and see if i can quick fix it.October 22, 2013 at 3:14 am #33866
I have fixed the issue you are having in the beta of the coming update of Support. if you’d like to test it please pet me know and i’ll email you the file.October 22, 2013 at 7:35 pm #33865nick_koonceMember
Yes please!October 22, 2013 at 7:47 pm #33864October 22, 2013 at 7:51 pm #33863
the email cannot be sent. i think the file is too big for this email address. Do you have another email address i can try?October 24, 2013 at 5:34 pm #33862
All email addresses will have similar problems. Can you provide a download link? I won’t share it and you can remove it once I’ve downloaded.October 24, 2013 at 6:28 pm #33861
You must be logged in to reply to this topic.