Skip Navigation

[Resolved] Is it possible for Views grid column count to come from a dynamic source?

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

Problem:

Is it possible to have just 1 view outputted, with the number of columns for the grid coming from a dynamic source?

Solution:

Unfortunately, there isn't such kind of built-in feature within Toolset Blocks plugin, it needs custom codes.

Relevant Documentation:

This support ticket is created 3 years, 5 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 0.24 hours from now. Thank you for your understanding.

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 2 replies, has 2 voices.

Last updated by beingk 3 years, 5 months ago.

Assisted by: Luo Yang.

Author
Posts
#2094963

I have a content type and related content of the same type which I need to display on each post. Since Toolset doesn't support relationship between posts of the same type yet, I've resorted to using a taxonomy filter. So far so good.

The issue is with displaying the content in a grid, which needs to be in 1, 2, 3 or 4 columns (radio buttons field in place). My current solution is to have 4 different conditionals based on the column count and then displaying the same view with the specified grid columns. It is working, but it makes for a pretty cluttered (and confusing) template in the back end.

(A separate topic, but the templates can get quite confusing when they are trying to pull content from the current post, which may be missing a certain content/feature/condition, but as soon as you click on the view the content appears. Wondering if I may be missing a setting or something).

My question: is it possible to have just 1 view outputted, with the number of columns for the grid coming from a dynamic source?

Thanks!

#2095297

Hello,

Unfortunately, there isn't such kind of built-in feature within Toolset Blocks plugin, it needs custom codes, but according to our support policy, we don't provide custom codes support.
https://toolset.com/toolset-support-policy/

You can also add a feature request for it:
https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/

Our developers will evaluate it.

#2095409

My issue is resolved now. Thank you!