This section contains special build blocks to provide the ability to build special content. Blocks are boxes of content that can be displayed in regions on a page. You can adjust the size, shape, appearance, position , and which page or pages the block appears on.
MEMS Alert
Alert
Menu Block
CRM Form Block
Qless Info Block
Instructions
Creating a New Block
Go to Structure > Blocks > Add Block
Set Machine name
Info |
---|
Machine names must be written using only lower case letters and numbers, no punctuation is allowed, words are separated with underscores. Make the Machine name and Block description match except for the formatting restrictions. |
Leave Block title blank unless you want to add a visible title users can see
Set Block description
...
Add your desired content to the Block body
...
If you are adding HTML or embedding JavaScript:
In the Block body editor, toggle Source mode, all other editor options will be grayed out and the body displays line numbers
Set the Text format field to Full HTML
Assign desired CSS class(es) separated by spaces. As an example, center the text in the block with the “text-center” class
...
Under Region settings, assign a region
Info |
---|
If you are creating the block for strictly JavaScript, it should be set to the Footer region. |
Under Visibility settings > Pages > Show block on specific pages, select which pages you wish to add the block to or exclude the block from
All pages except those listed
Only the listed pages, the example image below will make the block appear on the students page, and all the pages under the students area
...
Under Visibility settings > Pages > Show block for specific content types, you can select content types and your block will appear on any page that uses that given type. Selecting no types, means there will not be a specific type limitation.
Click Save block
Review your site to make sure your new block is appearing only on the intended pages. See the section Configure Existing Block to make adjustments. In the example below, the red Request More Information button below was added as a new block on the GWCC website.
...
Configuring an Existing Block
Go to Structure > Blocks
Scroll down to your block
Click the configure link under the Operations column
Make your changes adhering to the Create a New Block steps above
Click Save block
Changing Block Order
Go to Structure > Blocks
In the Region column, select your desired region if you need to change it
On the left column find your block, then drag-and-drop the Maltese cross icon above to the desired order, it is also possible to jump regions with drag-and-drop
...
Click Save blocks
Deleting a Block
...
Go to Structure > Blocks
...
Scroll down to your block
...
Child pages (Children Display) |
---|
Instructions
Blocks are individual pieces of your site’s web page layout. They are placed inside the regions (see Section 2.1, “Concept: Regions in a Theme”) of your theme, and can be created, removed, and rearranged in the Block layout (admin/structure/block) administration page. Examples of blocks include the Who’s online listing, the main navigation menu, and the breadcrumb trail. The main page content is also a block.
Condition paths
Info |
---|
It is recommend to use the normal “Pages” for placement unless you need to negate a path. |
The condition plugin builds on top of the Drupal Core Request Path plugin, also known as 'Pages' visibility of Blocks. The latter allows only whitelisted paths OR blacklisted paths to control content visibility while this plugin allows both whitelisted AND blacklisted paths and subpaths.
The module works the same as the Core 'Request Path' (Pages) plugin but allows using "!" as a path prefix to exclude a path. Wildcards can be used in the middle or end of a path.
...
Note to use the ! operator you will use the top menu option “Request Path Include Exclude“ , verse the normal “Pages” menu item to restrict where the block is placed.