Components: Difference between revisions
Imported from Confluence |
mNo edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
A component is | {{DrupalBack}} | ||
A '''component''' is a reusable content module that can be added to a webpage. Components provide functionality beyond the standard body content, such as feature blocks, galleries, accordions, call-to-actions, and other specialized content. Each component has its own settings and displays differently depending on the component type. | |||
== 4.1 | == 4.1 Understanding Content Zones == | ||
Drupal page templates contain three content zones where components can be placed: | |||
* '''3/4 Width Page Content''' | * '''3/4 Width Page Content''' — Reserved for components. Components added to this zone appear below the body content and to the right of the navigation menu. This zone is the same width as the body content above it. | ||
* '''Full Width Page Content''' | * '''Full Width Page Content''' — Reserved for components. Components added here appear below the body content, navigation, and 3/4 Width Page Content. They span the full width of the page. | ||
* '''Shared Site Content ''' | * '''Shared Site Content''' — Reserved for components managed through '''Site Settings'''. Components placed in this zone appear on every page of the website, below all other content zones. | ||
{{Screenshot|zones1.png|541px|Screenshot showing the three component content zones available within a Drupal page.|Drupal pages contain three content zones where components can be added.}} | |||
== 4.2 Adding Components == | == 4.2 Adding Components == | ||
To add a | To add a component to a page, first navigate to the page and click '''Edit Page'''. Scroll below the body content to locate the '''3/4 Width Page Content''' and '''Full Width Page Content''' zones. | ||
{{Screenshot|zones2.png|526px|Screenshot showing the component content zones within the page editor.|The component zones appear below the body content in the page editor.}} | |||
If a component already exists in one of the zones, it will appear | |||
If a component already exists in one of the zones, it will appear there. In the example above, there are no components in the '''3/4 Width Page Content''' zone and one Feature Link List component in the '''Full Width Page Content''' zone. | |||
=== 4.2.1 Adding a New Component === | === 4.2.1 Adding a New Component === | ||
To add a | To add a component to a content zone, click the '''Add Component''' drop-down menu. A list of available component types will appear. Select the component you wish to add. | ||
{{Callout|type=tip|Some components are designed to work only in the '''Full Width Page Content''' zone and therefore only appear in that menu.}} | |||
{{Screenshot|zones3.png|418px|Screenshot showing the Add Component menu for the 3/4 Width Page Content zone.|The available components vary by content zone.}} | |||
{{ | {{Screenshot|zones4.png|418px|Screenshot showing the Add Component menu for the Full Width Page Content zone.|Some components are available only in the Full Width Page Content zone.}} | ||
=== 4.2.2 Create the Component === | === 4.2.2 Create the Component === | ||
After selecting a component—for example, '''Add Feature''' in the '''Full Width Page Content''' zone—a new blank component will be added to the page. Complete the required fields and click '''Save'''. | |||
{{Callout|type=tip|Each component requires different information. Refer to the documentation for each component type for field-specific instructions.}} | |||
{{ | {{Screenshot|zone5.png|418px|Screenshot showing a newly added blank Feature component.|A new component is added to the page after it is selected.}} | ||
{{Screenshot|zone6.png|418px|Screenshot showing the completed Feature component ready to be saved.|Complete the required fields before saving the component.}} | |||
== 4.3 Arranging Components == | == 4.3 Arranging Components == | ||
You change the | You can change the order of components by clicking and dragging the six-dot handle to the desired position within the content zone. | ||
{{ | {{Callout|type=tip|Components can only be reordered within their current content zone. They cannot be dragged from one content zone to another.}} | ||
{{Screenshot|zone10.png|872px|Screenshot showing the drag handle used to reorder components.|Drag the six-dot handle to change the order of components within a content zone.}} | |||
== 4.4 Editing an Existing Component == | == 4.4 Editing an Existing Component == | ||
Once a component | Once a component has been added to a page, it can be edited in one of two ways: | ||
# | # Click the '''Edit''' button on the component. | ||
{{Screenshot|comp_edit.png|526px|Screenshot showing the Edit button for a component.|Use the Edit button to modify an existing component.}} | |||
# Use the contextual editing icons that appear in the upper-right corner of each component when contextual links are enabled. | |||
{{Screenshot|in_context.png|1106px|Screenshot showing the contextual editing icons available on components.|Contextual editing provides quick access to component editing directly from the page.}} | |||
== 4.5 Removing Components == | == 4.5 Removing Components == | ||
To remove a component from a page, click the | To remove a component from a page, click the '''Trash''' icon associated with that component. | ||
{{Screenshot|trash.png|692px|Screenshot showing the Trash button used to remove a component.|Select the Trash button to remove a component from the page.}} | |||
[[Category:Drupal]] | [[Category:Drupal]] | ||
Latest revision as of 19:06, 9 July 2026
A component is a reusable content module that can be added to a webpage. Components provide functionality beyond the standard body content, such as feature blocks, galleries, accordions, call-to-actions, and other specialized content. Each component has its own settings and displays differently depending on the component type.
4.1 Understanding Content Zones
Drupal page templates contain three content zones where components can be placed:
- 3/4 Width Page Content — Reserved for components. Components added to this zone appear below the body content and to the right of the navigation menu. This zone is the same width as the body content above it.
- Full Width Page Content — Reserved for components. Components added here appear below the body content, navigation, and 3/4 Width Page Content. They span the full width of the page.
- Shared Site Content — Reserved for components managed through Site Settings. Components placed in this zone appear on every page of the website, below all other content zones.
4.2 Adding Components
To add a component to a page, first navigate to the page and click Edit Page. Scroll below the body content to locate the 3/4 Width Page Content and Full Width Page Content zones.
If a component already exists in one of the zones, it will appear there. In the example above, there are no components in the 3/4 Width Page Content zone and one Feature Link List component in the Full Width Page Content zone.
4.2.1 Adding a New Component
To add a component to a content zone, click the Add Component drop-down menu. A list of available component types will appear. Select the component you wish to add.
4.2.2 Create the Component
After selecting a component—for example, Add Feature in the Full Width Page Content zone—a new blank component will be added to the page. Complete the required fields and click Save.
4.3 Arranging Components
You can change the order of components by clicking and dragging the six-dot handle to the desired position within the content zone.
4.4 Editing an Existing Component
Once a component has been added to a page, it can be edited in one of two ways:
- Click the Edit button on the component.
- Use the contextual editing icons that appear in the upper-right corner of each component when contextual links are enabled.
4.5 Removing Components
To remove a component from a page, click the Trash icon associated with that component.









