Skip Navigation

[Resolved] Advice for navigation structure

This thread is resolved. Here is a description of the problem and solution.

Problem:
Advice for navigation structure

Solution:
You can design a layout with two view's cell where left part holding categories link and right part will display associated products attached to specific category.

You can find proposed solution, in this case, with the following reply:
https://toolset.com/forums/topic/advice-for-navigation-structure/#post-630568

Relevant Documentation:
https://toolset.com/documentation/user-guides/filtering-views-by-taxonomy/

This support ticket is created 6 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.

Our next available supporter will start replying to tickets in about 5.91 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 8 replies, has 2 voices.

Last updated by christianS-11 6 years, 7 months ago.

Assisted by: Minesh.

Author
Posts
#628900
New Mockup 1.png

Hi,

I need your advice how to setup the following site structure:

On the left side of the page there should be a list of Categories. If I click on one of the, all item of that category should appear in the middle of the page. If I click on an item, the details of this item should appear in the right side of the page.

Is it possible to set this up with toolset? Should/Can I load content with ajax or use iframe?

Thanks for your help

#629070

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

First of all - I would like to know how you want to create this page. Is left side where you want to add filter do you have left sidebar or you will use layout cells to design your layout.

Basically - you can build a post view filter by taxonomy where you can add [wpv-post-link] shortcode that will redirect you to the single post details page.

More info:
=> https://toolset.com/documentation/user-guides/filtering-views-by-taxonomy/

#630354

Hi,
I have no limitation how to to it. Whould a sidebar be easier or use layout cells?

I think my main problem for understanding is, how to load the details of an item in the right div/column; I just want to display the conent; no the complete deails page with header/footer etc.

#630568

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - Toolset Layouts, views or content template will have effect to your page's content area.

I've created the demo for you on our free test platform - discover-wp.com:
=> hidden link

I've designed layout with two view's cell where left part holding categories link and right part will display associated products attached to specific category.

Please try to register your account to discover-wp.com and send me registered email ID so that I will invite you to check the wp-admin and how that page is created. Create a test site here and fill all required information and send me registered email:
=> https://discover-wp.com/register/?site_type=660

#631291

Hi,
I think I made it the way I like it with the help of a search form and iframe:

hidden link

At the beginning there should not be items in the middle area. How can I set up this?

#631297

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

well - you should add view's filter wpv_filter_query to your current theme's functions.php file.

add_filter( 'wpv_filter_query', 'default_blank_func', 10, 3 );
  
function default_blank_func( $query_args, $view_settings, $view_id ) {
    if ( $view_id == 741&& !isset($_GET['wpv_view_count'])) { // if it is view 546 and default result
         $query_args['post__in'] = array(0);
    }
    return $query_args;
}

- Please correct your view ID 741 if its not correct.

#631338
2018-04-04 11_39_21-Rohedelsteine – Günter Bohrer.png

Hi,

if I use it this way, there are no items in the select box on the left side too.

#631344

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - Could you please edit your view and follow the following steps:
=> Navigate to section "Custom Search Settings"
=> choose option "Let me choose individual settings manually"
=> further chose option "Always show all values for inputs" under section "Which options to display in the form inputs"
=> save settings and view

#631346

Hi,
ok perfect now, thank you 🙂