Copy Yorktown1 Layout doesn't apply correctly
David Buchanan says:
Hello Matt,
I saw someone else has this issue but it is a private message so I couldn't see the fix for it.
When I copy the Yorktown1 Layout and rename it, then apply the new layout from the 'advanced' tab of the editing screen, the page displays as a Yorktown2 and not as a Yorktown1. I have made no changes to the renamed layout's code yet so it is identical to the Yorktown1 I copied.
Suggestions??
live, learn, laugh
David
Posted at 2:18 AM on December 18, 2009
David,
That's because the two different Yorktown layouts are exactly the same. It uses the name of the layout to determine whether to show the menu or not. See this line: var noMenu = layoutName.indexOf('1Col')>-1; The noMenu variable controls whether the menu area should be shown or not based on whether the name of the current layout includes "1Col". So if you want your modified Yorktown layout to not show the menu area, be sure the name of the Layout page includes "1Col" somewhere in it. Matt
Posted at 10:59 AM on December 18, 2009