I'm just playing around with the new grid layout in 7.2.0 - is there any way to make certain columns recursive?
Ie. if I have a parent page with a grid layout named "2 Column Layout", with 2 child pages, each with the same grid layout, is it possible for the content of column 2 on the parent page to show on column 2 of the child pages?
With Rich Text Editors, I would simply use @Umbraco.Field("column2Alias", recursive:true) on the parent and child templates - is something similar available for the grid layout?
I don't think this is possible at the moment, the grid layout funtionality for the Umbraco 7.2 was made by the guys from LECOATI. And the guys had a sesseion on this year Codegarden. You can see the session here http://stream.umbraco.org/video/9948281/the-sky-is-the-limit and they are talking about the difference package they have made, including the Grid layout.
If you donĀ“t what to see the full session, the question if you can reuse the grid layout template, starts in 45:00 minute. When this said you could add a feature request, on this so it would be able to call a grid recrusive. You can create the feature requrest on the Umbraco issue tracker http://issues.umbraco.org
If you create a feature request please link to the case on the issue tracker so other people that come across this post, can vote for it.
Hope this is answers your question, maybe I can be wrong here because is a relatively new feature.
Thanks for that - I have been able to alter the site structure so that this hasn't been such an issue, but I have created a feature request regardless: http://issues.umbraco.org/issue/U4-5987
This doesn't always work since the recursive call will view an empty grid as having a value and won't fallback to the parent. You'd have to remove the grid property from any children that want to use their ancestor's grid.
7.2.0 - Grid layout with recursive columns?
Hi all,
I'm just playing around with the new grid layout in 7.2.0 - is there any way to make certain columns recursive?
Ie. if I have a parent page with a grid layout named "2 Column Layout", with 2 child pages, each with the same grid layout, is it possible for the content of column 2 on the parent page to show on column 2 of the child pages?
With Rich Text Editors, I would simply use
@Umbraco.Field("column2Alias", recursive:true)
on the parent and child templates - is something similar available for the grid layout?Hi Phil,
I don't think this is possible at the moment, the grid layout funtionality for the Umbraco 7.2 was made by the guys from LECOATI. And the guys had a sesseion on this year Codegarden. You can see the session here http://stream.umbraco.org/video/9948281/the-sky-is-the-limit and they are talking about the difference package they have made, including the Grid layout.
If you donĀ“t what to see the full session, the question if you can reuse the grid layout template, starts in 45:00 minute. When this said you could add a feature request, on this so it would be able to call a grid recrusive. You can create the feature requrest on the Umbraco issue tracker http://issues.umbraco.org
If you create a feature request please link to the case on the issue tracker so other people that come across this post, can vote for it.
Hope this is answers your question, maybe I can be wrong here because is a relatively new feature.
/Dennis
Dennis,
Thanks for that - I have been able to alter the site structure so that this hasn't been such an issue, but I have created a feature request regardless: http://issues.umbraco.org/issue/U4-5987
There workaround for this:
Not perfect, but it work!
If you need to recurse a grid you can pass the property directly into the Helper rather than its alias which allows you to recurse it.
This doesn't always work since the recursive call will view an empty grid as having a value and won't fallback to the parent. You'd have to remove the grid property from any children that want to use their ancestor's grid.
is working on a reply...