Commonspot - Create a page with the Bootstrap Layout
How to use the bootstrap layout in Commonspot.
CommonSpot Bootstrap Layout
The bootstrap layout is structured by adding containers and specifying grid rows.
- Containers allow you to break the page up into sections with background colors.
- Grid rows allow you to format your content into rows and columns inside your container.
- You can see here how a basic bootstrap is laid out using containers and rows.
To Create a Bootstrap layout:
- Navigate to your sub site and create a new page from the Commonspot menu and choose, New > Page.
- Fill out the properties for your new page:
- Name: filename for the new page (spaces will be hyphenated).
- CommonSpot Title: Heading for the page. Will be displayed as a Heading 1 (H1) at the top of the page and used for internal searching within Commonspot.
- Page Title: Displayed in the browser tab, also used by search engines. Append with ‘ | UW-Parkside’.
- Category: Choose Bootstrap.
- Click Next
- Define the custom properties for your new page:
- Hero Image: A large image that can be added to the top of your page. Make sure to crop your photos to a width of 1920px with a recommended height of 500 – 800px.
- Hero Caption: Alternate text for the hero image. Describe the image and any words used in it.
- Display Sidebar: Toggle showing the “Who are you?” box on the edge of the page.
- Page Header Options: Use to control spacing between heading and default container.
- Hide page header section: Will hide the default Heading 1 and text block. If this is checked, you must make sure to include an H1 at the top of the page manually.
To Format your page:
- The default layout gives you a formatted text block under the page heading you can add content into.
- Add Containers: You can customize your layout further by breaking your page up into sections by color. To do this, insert container elements into the base default container proved with the layout.
Add enough containers for each alternate color section you want, being careful not to nest containers into the new containers you’ve added.
- Define your grid rows:
- Click on the square next to the container you want to edit and choose: ‘Layout Properties’
- Click the ‘grid’ tab.
- Change Row 1 to a bootstrap column of your choice.
- Add more rows as necessary.
- By clicking the + sign next to a row, you can control the padding on the top or bottom of a it by choosing the pencil icon (edit) next to the container.
- Under the ‘Layout’ tab, you can also define a background image for the container. (It’s recommended to chose ‘cover’ for the background size) If it's a dark image be sure to choose a background color for the container style that has contrasting text (see below).
- To style the color of your container section, click on the square container icon and choose 'style'.
- From here there are some styles you can choose from including the background options for color.
- You can now add your elements into the grid row sections to start adding content to the page.