Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

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.


Instructions

Create New Block

  • Go to Structure > Blocks > Add Block

  • Set Machine name

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

  • In the Block body editor, toggle Source mode, all other editor options will be grayed out and the body displays line numbers

  • Add your desired HTML to the Block body

  • Set the Text format field to Full HTML

  • Assign desired CSS class(es) separated by spaces

  • Under Region settings, assign a region

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

  • Test your block implementation on pages you intended your block to appear on and make sure they are not appearing on those you don’t. See the section Configure Existing Block below to make adjustments

Configure 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


Select the table below to edit…

  • No labels