Drupal, instruktioner för redaktörer
The Layout Builder
Do as follows:
In this example, we describe how to use Layout Builder with an existing rich page and how to add the “Text box” and “Video” components in a two-block section
- With the page open, click “Layout” in the row of tabs.
- Add section
Underneath the fixed fields you can create your layout by first adding what are known as sections.- Click the “Add section” link at the bottom right of the page or use the pre-selected “Two-block section” on the page.
- Click the “Add section” link at the bottom right of the page or use the pre-selected “Two-block section” on the page.
- Section type
You can now choose how many blocks the section is to have by clicking one of the different layouts to the right of the page.- “Two-column” (three options).
- “Threecolumn”.
- “Single-column
- “Full width”.“
- Configure section
Specify the section heading, background colour (none or grey) and whether there is to be a margin between it and the section above. This applies to all new sections with the exception of the “Full-width” type, which doesn’t have any settings.- Click the blue “Add section” button.
- Click the blue “Add section” button.
- Fill the section with content and add components
You can now start filling the section you just added with content.
Click the “Add component” link on the left of the two-block section.- Select component
In this example, we choose to add the “Text box” component from the list on the right. Click the “Textbox” link. - Configure component
Enter the text in the box that opens in the editor and click the blue “Add component” button to save.
- Select component
- Now add content to the right of the two blocks. Click the “Add component” link.
- Select component
In this example, we choose to add the “Video” component. Click the “Video” link. - Configure component
- Title
Enter the video’s name/heading in the “Title” field (required). This text will appear under the video. - Video URL
Enter the URL of the video by pasting the address in the “Video URL” field (required). - Video length
Enter the length of the video using the format m:s (minutes and seconds) or h:m:s (hours, minutes and seconds) in the “Video length” field. - Video cover
Add an image to be used as a cover image for the video before it’s played in the “Video cover” field (required). Click the grey “Open image library” button. - Add component
Click the blue “Add component” button.
- Title
- Select component
- Now publish the changes made to the page by selecting “Published” and then clicking the blue “Save changes” button.
- “Image” component
Select the “Image” component.- Click “Open image library”.
- Choose an image from the library, highlight the image and click “Select images”.
- Enter an alternative text (required). Images that are purely decorative or carry no information are not to have an alt text.
- Click “Add component”.
- “Blurb – external (link)” component
Select the “Blurb – external (link)” component. Enter the heading in the “Title” field and the link address in the “Link” field. Click “Add component”.- You can also choose to:
- Add a label in the “Label/Category” field to help visitors.
- Write a shorter summary in the “Introduction” field.
- Add an image to be displayed in the blurb by clicking “Open image library”.
- “Blurb – internal (link)” component
Select the “Blurb – internal (link)” component. Enter the heading in the “Title” field and the link address in the “Link” field. Click “Add component”.- You can also choose to:
- Add a label in the “Label/Category” field to help visitors.
- Write a shorter summary in the “Introduction” field.
- Add an image to be displayed in the blurb by clicking “Open image library
- You can also choose to:
- “Video” component (specify which sections)
Select the “Video” component.- Enter the video title in the “Title” field (required).
- Paste a link from, for example, YouTube, Vimeo or GU Play in the “Video URL” field (required).
- Enter the length of the video in the “Video length” field (required).
- Add an image to be used as a cover image for the video before it’s played in the “Video cover” field (required).
- Click “Add component”.
- “Text box” component
Select the “Text box” component.- Add your text in the editor.
- Click “Add component”.
- “Document” component
Select the “Document” component.- Enter the heading in the “Heading” field.
- Click “Add document”.
- Click the “Browse existing documents” link to specify a file or to search for an existing file.
- Check the checkbox and click the “Select document” button.
- You can also choose to upload a new document:Click the “Upload a new document” link.
- Click the “Upload a new document” link.
- Enter the title in the “Title” field.
- Click the “Browse…” button in the “File” field and search for your document.
- Enter a short summary describing the document.
- Specify a “Cover image” if you want to add an image to the left of the document link.
- “Link list” component
Select the “Link list” component.- Enter the link list heading in the “Heading” field”
- Enter the link to the page in the “URL” field and the link text in the “Link text” field.
- Click the “Add more alternatives” button to add more links.
- You can change the order of the links by clicking the “Show row weights” button.
- “Editor” component (this component can only be used on information pages and in the left section)
Select the “Editor” component.- Add your text in the editor.
- Click “Add component”.
- “Accordion” component
Select the “Accordion” component.- Specify the heading and heading level (H2–H4) of the accordion in the “Heading” field.
- Add the facts in the editor under “Content”.
- Click “Add component”.
- Use the “Save changes” button to save your changes.
- “Fact box” component
Select the “Fact box” component.- Enter the title in the “Title” field.
- Add the fact box text in the editor in the “Facts” field.
- Click “Add component”.
- “Text box” component
Select the “Text box component.- Add the text in the editor.
- Click “Add component”.
- Don’t forget to save your changes.