This layout demonstrates the basic features of ImmediaCMS (and is not intended to be displayed!)
Basic content pull (the main HTML content):
Pull in one particular field on the content:
Pull in custom-defined field on the content:
Checking if a field is empty/blank:
* Note: You can use IsBlank() the same way after .GetString("YourFieldName")
* Note: The "else { ... }" section is optional, and will be used if the field DOES have a value
No abstract was provided
Attempting to pull in a missing piece of content will show an error to logged in adminstrators.
To avoid that, use an optional content pull like so:
This "else" statement is optional, and the HTML in here will only be displayed if the page does NOT have "RightContent"
Pulling in multiple pieces of content:
Sometimes you may want to use this version if you want to output the item number, or if you want to alternate items (left, right, left, etc)
To display a page relation (typically used for translations, e.g. French version of a page):
To find all pages with a particular tag (not commonly used!)
Sub Menus
Increase the startAtDepth parameter to exclude higher up parts of the menu
Pulling content from another page
Child Pages
Loading Pages (and content) under another page
Carousel
Modal Per Content