Repository navigation
Custom Block: Banner Override
Carl Bradshaw edited this page Jun 5, 2020
·
3 revisions
A custom block to override hero banner content on non editable pages
Some pages may be created on the site which are neither nodes or taxonomy terms, these pages cannot be edited the same way, therefor cannot have banner override fields. To add a banner to a non-editable page, we use the Banner Override block.
- go to Structure > Block layout > Add custom block in the admin menu
- Click on Banner Override
- Add a Block description which will help identify this block to admins on the blocks listing page.
- In the Path field, enter the internal path of the page you wish to alter the banner of. eg
/about/our-organisation - Fill out the override settings part of the form with your override values, then click save
- once saved, you will be redirected to a configure block page, this is used to place the block on the site. We don’t need any of these settings, so you can safely navigate away from this page.
- Ensure the override settings you entered on the block have taken effect on the desired page.
The "Banner Override" block has the following fields:
- Block description : is used for admins to identify the block when listed on the blocks overview page.
- Path
- Banner Override
This block should never be rendered. It as used strictly to store configurations for overriding content on non editable pages.
- Home
- Themes
- Block types
- Content types
- Media
- Taxonomies
- Components (Paragraphs)
-
Fields
- Node
- About
- Article Type
- Associated With
- Author
- Attachments
- Audiences
- Citation
- Components
- Consultation
- Consultations
- Copyright
- CTA
- Description
- Display Location
- Document ID
- Event Date
- Event Location
- External link
- Financial year approved
- Funding
- Impact Statement
- ISBN
- Lead Organisation
- Legislation
- Menu settings
- Meta Tags
- Parties
- Programs
- Project dates
- Project ID
- Published date
- Regions
- Report Content Type
- Report settings
- Resource Type
- Search Exclude
- Sidebar Components
- Status
- Sticky at top of lists
- Submission ID
- Submitted by
- Summary
- Superseded-by
- System information
- Tags
- Temporal range
- Themes
- Thumbnail
- Title
- Updated date
- URL alias
- Component
- Accordion Body
- Accordion Speed
- Accordion Orientation
- Accordions
- Blurb
- Body
- Caption
- Colour Scheme
- CTA
- Date
- Details
- Geo json URL
- Geo json Input
- Heading
- Image
- Item Image
- Item Info
- Item Summary
- Item Url
- Label
- Links
- Map bounds
- Nodes
- Read More
- Show Close All
- Show Open All
- Show Toggle All
- State
- Title
- Title Override
- Webform
- Media
- Taxonomy
- Block
- Node
- View modes
- Other