Documentation Level:
Advanced
Documentation Status:
No known problems
Layouts divide pages on your site into different columns or regions where content can be placed
Go to Administer > Structure > Layouts
- If you would like to use this layout as the default for all pages on your site
- Click the 'edit' button for the 'Default Layout'.
- Click on the 'settings' tab at the top right of the screen.
- Select your new layout from the list provided, and click 'Save layout'.
- Place your content into the regions provided by this layout.
- Click the 'Save Configuration' button at the bottom.
- If you would like to use this layout for a new page on your site
- Click the '+ Add new layout' link at the top of the layouts listing.
- This will create a new stand-alone layout.
- Give your new page layout a name, select the layout from the list provided, and add any additional settings.
- Place your content into the regions provided by this layout.
- Click the 'Create layout' button at the bottom.
- If you would like to use this layout to override the layout for an existing page.
- Click the '+ Add new layout' link at the top of the layouts listing.
- Give your page layout a name, select the layout from the list provided, enter in the existing system path.
- This will create a new Override Layout (or Dynamic layout).
- Add conditions to target only your desired page(s), for example:
- To show this layout on only article nodes, enter in the path
node/%
and add the condition whereNode: Type
isArticle
. - To show this layout on only the pages in the "news" section, enter in the path
node/%
and add the condition whereURL path
isnews/*
. - To show this layout on only the about page, enter in the path
node/%
and add the condition whereNode ID
is1
. - To show this layout on all user profiles, enter in the path
user/%
with no conditions.
- To show this layout on only article nodes, enter in the path
- Click the 'Create layout' button at the bottom.
- Place your content into the regions provided by this layout.
- Click the 'Save layout' button at the bottom.
If you run into problems, check the layout's issue queue. If your problem hasn't already been addressed, post a question and someone will try to help you out.