Embedded Content

Content embedding is something that will typically be done during the site building process, however it is still good to understand what these specific tags are doing on your page.

Views

To insert a Drupal View (a database query built by the Web Team for calendar events and other dynamic content made of multiple nodes) in a content area use the following tag. For example, a calendar feed of the upcoming academic events.

Example:

[view name=calendar_regular_block_style display=three_depth filter=12] 

Would import the following content:

Tue
1
Aug
through Sep 1
Tue
1
Aug
8:30 am through Nov 17
WSU Bookstore
Tue
1
Aug
8:30 am through Sep 15
WSU Bookstore
 

Page content (nodes)

Node embeds allow you to include existing Wright State website content into your page. This allows us to:

  • feature content that exists on another page and/or in another workbench
  • avoid making duplicate/redundant pages
  • allow your desired content to automatically update when the original content is changed

To find the node ID (NID) of a page, just use the ID next to your name, date and time listed just above the buttons at the bottom of the page.  If you do not have editing rights to the node you want to insert into another page, please file a help ticket to the Web Team and we can provide NIDs quickly.

Examples:

Embed a whole other page:

This code would embed the body content from the page with the ID 315 into the page.

[­­­­­node id=315]

Embed just an excerpt of another page:

On the node you want to excerpt from use the following codes wrapped around the appropriate content

[excerpt id=visitorparking] 

[/excerpt]

The following code would then need to be added to the page you want the excerpt displayed on.

[node id="396" excerpt="visitorparking"]

Override style tags (for Promo Blocks):

You also have the ability to override the "Style Tags" field of Promo Block content using the "style-tags" attribute. Any classes listed in this attribute replace those defined in the node's Style Tags field. For example:

[node id=15523 style-tags="box-type-2 width-50 align-left height-225 bordered"]

Embed from other wright.edu subdomains:

Node embed normally only allows you to embed content from the same domain (e.g., if you are working on lake.wright.edu, you can only embed content from lake.wright.edu). With an extra attribute, you can embed content from other wright.edu subdomains powered by the Office of Marketing-managed Drupal CMS.

[node site=www id=396 excerpt=visitorparking]

It is not a good idea to include the site attribute when you don't need it. Although it will work to embed content from the same domain, it will incur a performance penalty.

Menu Blocks

The following code allows a whole menu to be inserted into the body section of a page.

[menu id="menu-financial-aid-paying"]