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.
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.
[view name=calendar_regular_block_style display=three_depth filter=12]
Would import the following content:
Page content (nodes)
- 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.
Embed a whole other page:
This code would embed the body content from the page with the ID 315 into the page.
Embed just an excerpt of another page:
On the node you want to excerpt from use the following codes wrapped around the appropriate content
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.