Skip Navigation

[Resolved] How to send parameters to View in Layout?

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

Problem: I would like to include a View in my Layout, and I need to supply some shortcode attributes to the View. It seems I cannot do this with a View cell.

Solution: That is correct, at this time we do not support shortcode attributes in View cells. Instead, use a Visual Editor cell to insert the View shortcode, and apply your shortcode attributes there.

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

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 3 replies, has 2 voices.

Last updated by Kristian Adolfsson 6 years, 6 months ago.

Assisted by: Christian Cox.

Author
Posts
#768964

Tell us what you are trying to do?

I have a View with a shortcode attribute that I want to set in the Layout where I use it. Can't find any way to do that.

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?

#769112

Found that I could include the View from the Text Editor and set parameters in there. Is this really the right way? Seems weird.

#772161

Yes that's correct, if you want to use shortcode attributes with a View shown in a Layout, the best way is to use a Visual Editor cell. The View cell is not currently capable of applying shortcode attributes.

#775381

Hi Christian
Thanks.