If I have a page with a grid datatype with a choice of 2 col & 3 col layouts. How do you change the layout? I've just built a page and used a 3 col layout. Now the client wants it to be 2 col. After removing all the content from the columns, I don't see any way of changing the layout to the 2 col one that is in the datatype?
Is there a way or do I have to destroy the page and start again? Not a problem in this case as the page is standalone. But if it were a page with children, could be nasty.
This is undocumented, as far as I can tell, but the answer to the question above is, if you delete all your grid cells and rows, you see the choice of layouts again. So no need to destroy anything structural to reconfigure the page's (or grid section of the page) layout
There is an alternative way of doing this. If you edit your doctype to include a 2nd grid editor, you can choose the alternative layout for that one. If they're on the same tab this means you'll see them below each other, your old 3 col on top and the new 2 col below it.
You can arrange all your columns in the new grid, then reorder and move all your content from the old grid to the new. You won't have to delete everything.
The problem with this is you'll end up with 2 grid editors on your page. If you're reusing the doc type you can't remove the old one because it'll mess up the content on all your other pages.
You could just use the 2nd grid as a temporary space to save your content, then clear out your original grid, set up the layout, and move everything back. Deleting the 2nd grid afterwards shouldn't give you any problems.
How to change Grid Layout
If I have a page with a grid datatype with a choice of 2 col & 3 col layouts. How do you change the layout? I've just built a page and used a 3 col layout. Now the client wants it to be 2 col. After removing all the content from the columns, I don't see any way of changing the layout to the 2 col one that is in the datatype?
Is there a way or do I have to destroy the page and start again? Not a problem in this case as the page is standalone. But if it were a page with children, could be nasty.
Cheers,
Craig
This is undocumented, as far as I can tell, but the answer to the question above is, if you delete all your grid cells and rows, you see the choice of layouts again. So no need to destroy anything structural to reconfigure the page's (or grid section of the page) layout
HTH
Craig
This makes it a huge hassle to change a page's layout. I hope this gets updated soon.
There is an alternative way of doing this. If you edit your doctype to include a 2nd grid editor, you can choose the alternative layout for that one. If they're on the same tab this means you'll see them below each other, your old 3 col on top and the new 2 col below it.
You can arrange all your columns in the new grid, then reorder and move all your content from the old grid to the new. You won't have to delete everything.
The problem with this is you'll end up with 2 grid editors on your page. If you're reusing the doc type you can't remove the old one because it'll mess up the content on all your other pages.
You could just use the 2nd grid as a temporary space to save your content, then clear out your original grid, set up the layout, and move everything back. Deleting the 2nd grid afterwards shouldn't give you any problems.
This is a clever solution for developers, I just wonder how the average editor might take to it.
is working on a reply...