Back to top anchor
Open main menu Close main menu

Sector Guide

The Sector guide provides step-by-step guidance for your Sector Projects.

Sector Page content type

Sector Pages are based on the Drupal default Page content type. Sector Pages provide an easy starting point for hierarchical content in menus and include three sample layouts and additional sample content settings to get you started.  

Features and functionality

Sector Page includes:

  • Sector page content type, displays and responsive menus
  • Sector Page Variants and Page Settings (see below)
  • Sector Page template elements blocks (see below)
  • Sector Sitemap for hierarchical content
  • Sector editable 404 and 403 error pages 
  • Sample content to make it easy to get started

Introducing Sector Page display options  

The preconfigured Sector Page display options in the Sector Starter Kit allow the content editor to chose between three Page layout variants - homepage, section entry page, standard page - and apply additional Page content settings - 'Hide sidebar' and 'Show last updated'. 

Both the Page layout variants and the Page content settings are built on Drupal taxonomies and can be easily extended. The Sector page architecture allows us to mix and match layout options with minimal technical debt. For example, a standard page can hide the sidebar and show the last updated block with only one layout template to maintain. 

The Sector Page display options go hand-in-hand with 'Manage displays' and 'Display Suite' settings. 

Related entities and configuration (Sector D8)

The Page content type 

<your-domain>/admin/structure/types/manage/page

The Page variant taxonomy

<your-domain>/admin/structure/taxonomy/manage/page_variants/overview

From 8.x-2.0-beta1 (October 2018) terms in Page variant are 'rabbit-holed' to redirect to the 403 Access denied page, the default setting not public facing taxonomies in Sector.   

Content setting taxonomy (Automated contextual content)

<your-domain>/admin/structure/taxonomy/manage/automated_contextual_content

From 8.x-2.0-beta1 (October 2018) terms in Content setting are 'rabbit-holed' to redirect to the 403 Access denied page, the default setting not public facing taxonomies in Sector.

Related blocks under block layout 

<your-domain>/admin/structure/block

  • Page title (default) - placed in the pre-content region (excluded for home and section entry pages)
  • Page title (alternate 1) - placed in the hero region (set for home and section entry pages)
  • Subtitle (default) - placed in the hero region (set for home and section entry pages)
  • In this section (menu)
  • Main menu 
  • Last updated

Term conditions* and related patches 

The Sector block template components listed above are displayed via multiple term conditions made possible with a Sparks custom patch to the term conditions module. This allows us, for example, to exclude the page title in the pre-content region for Home and Section entry pages and replace it with the page title in the hero region. 

Sample content

  • Content management made easy. - The homepage
  • Sector Section entry pages - Section A Section entry page 
  • Sector Standard pages - Standard Page in Section A
  • Sector WYSIWYG - Content elements  --  Sample page to showcase text formats and styles
  • Sector Page Content settings - Hide sidebar --  Sample page to showcase the hide sidebar content setting
  • Level 2 page - Sample content to showcase sidebar and responsive menu 
  • Level 3 page - Sample content to showcase sidebar and responsive menu 
  • Level 4 page - Sample content to showcase sidebar and responsive menu 
  • Make your title unique, clear and descriptive - Section B Section entry page 
  • Sector News section entry page - News landing page
  • Site map - Sitemap listing pages in the main menu
  • Access Denied (error 403)- Editable 403 page 
  • Page not found (error 404) - Editable 404 page 

 


* The Sector D8 term conditions replace the Sector D7 context configuration.  

 

 

Open Source award winner!

Sparks Interactive are delighted to accept the Open Source Use in Business award for Sector and the Sector.nz open source platform

Find out more

Subscribe for Sector updates