Hi support,
First of all, I really love toolset! Great tool.
I’ve used the following functionality:
“How to create a product comparison for any post type”
hidden link
Together with:
https://toolset.com/course-lesson/displaying-a-list-of-posts-on-a-map/
I am developing local, that’s why I attached some images.
1.png
What I want to do is when I click the title in the right column, then the marker of the specific place should highlighted. And maybe when I click the marker in the map, the place in the right column gets highlighted. You can see the functionality live on: hidden link
2.png
I’ve made a result page as shown in the comparison movie. I want to adjust a couple of things.
1. First of all I want to make a sort of table with labels in the front as shown in 3.png. Now the labels are above each field. Is this possible? I use the classical editor in views.
2. Further more when I click the comparison button and I didn’t make a selection. The result page shows all elements under the post type instead of none. Is this possible? So when I didn’t make a selection nothing is shown on the result page?
A lot of questions and I hope you can help me. It would be much appreciated!
Cheers Richard
Hello and welcome to the Toolset support forum.
1. First of all I want to make a sort of table with labels in the front as shown in 3.png. Now the labels are above each field. Is this possible?
Yes, this is possible. But you can't be built them with HTML tables, you will need to use the Bootstrap grid for that. Read more about bootstrap here hidden link
You will have to put the first column before the loop in the view code. Then you can put the compared posts inside the loop.
2. Further more when I click the comparison button and I didn’t make a selection. The result page shows all elements under the post type instead of none.
Inside of the comparison page put the view shortcode inside of a conditional shortcode <b>wpv-conditional</b>
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#vf-153493
The condition should be against the URL parameter that holds the selected posts to compare. If no posts are selected the URL param will be empty. You can get the value of the URL parameter with the <b>wpv-search-term</b> shortcode.
I hope this answers your question, let me know if you have any further questions.