Brick River Code Snippet Library

Brick River provides more than 45 Code Snippets that can be inserted on Pages and in bodies of Content Records and Email messages. Here they are...

 


@BRT.BreadCrumb() back to top

This is a super-simple snippet - it creates Bread Crumb links - links to parent pages of the current page.

 
This snippet can be inserted anywhere on a Page or Layout.  In the Page Design screen you can insert the snippet in either the Design view or the Source view.

This snippet contains the BRT.BreadCrumb() helper which displays an unordered list - a bullet list, of Breadcrumb links - links to the parent pages of the current page. 

The appearance of Bread Crumb links depends on how the site designer has defined the styles for unordered lists. If you understand HTML and CSS you can do change the appearance of these lists.  Learn more here - in our Dev Guide.

If you insert this Snippet from Page Design view - it may not display the Bread Crumbs until the Page has been saved, closed, and re-opened.  After saving and re-opening the breadcrumbs will display in a 'code block' - an area of the page that can not be selected and edited further.

 

@BRT.Calendar back to top

Inserts the @BRTCalendar() function with a placeholder value for the DetailPage: parameter. This can be inserted in Pages or Layouts to create a calendar display of Event records.
While this snippet may be inserted in Page Design view, it is most often inserted in Source View or in the design of a Layout.  

Once the snippet is inserted, the DetailPage: parameter should be changed to reflect the Page to be used to display individual Event records when links are clicked in the calendar.



Read more about using Calendar Helpers here in our Developer's Guide.

 

@BRT.CalendarDetail - Calendar Detail Helper back to top

Inserts the @BRTCalendarDetail() function with a placeholder value for the returnPage: parameter. This can be inserted in Pages or Layouts to display details of Event records presented on a Calendar
While this snippet may be inserted in Page Design view, it is most often inserted in Source View or in the design of a Layout. 

Once the snippet is inserted, the returnPage: parameter should be changed to reflect the Page that contains the Brick River Calendar.

This snippet inserts the BRT.CalendarDetail() function - which works together with the BRT.Calendar() function.

BRT.Calendar() uses the DetailPage: parameter to point to the Details Page
BRT.CalendarDetail() uses the returnPage: parameter to point back to the Calendar Page.
 

Read more about using Calendar Helpers here in our Developer's Guide.




 

@BRT.DataLink() back to top

Inserts the @BRTData() Helper. This snippet includes a prompt to provide three parameters used by the Helper.
The BRT.DataLink() Helper is used to open a data form and, optionally, populate the form with default values or open a specific record with the form.

This Snippet prompts for three parameters,
formId:
defaultValues:
recordId
 

 

@BRT.Files - Add Links to All Files in a Folder back to top

Adds an unordered list of links to all files in a designated directory. This is ideal for linking to .pdf files in a .pdf library.
While this Snippet may be inserted in Page Design view, it is most often inserted in Source View or in the design of a Layout.
 
Use the Page Source View or the Layout view to edit the directory: parameter of the BRT.Files() Helper included in the Snippet.

Use this parameter to point to the Brick River folder that holds the desired files.

Additional parameters may be used by BRT,Files().  Read about them here in the Developer's Guide.

This Snippet is ideal for providing links to a library of PDFs or other files.  For example, if you want users to be able to easily download monthly reports, simple create a folder in the Brick River Files Library called monthly-reports.
 

Each month, upload the monthly report to this folder.

On the page where you would like to display links to monthly reports, insert the Snippet.  Edit the directory: parameter to indicate the monthly-reports folder.

 

@BRT.GenerateMeta back to top

This simple Snippet inserts the @BRT.GenerateMeta() Helper with placeholders the keywords: parameter.  It is meant to be used in a site's base layout.

Replace the placeholders with a list of relevant words to include in the site's keywords meta tag.
 

@BRT.Raw (put out the raw HTML) back to top

Adds the @BRT.Raw Helper (used to include HTML encoded fields on pages and layouts).
This simple Snippet inserts the @BRT.Raw() helper - which is necessary when including content from fields enabled to store HTML.  It is used in Layouts and Page Source code.  More information can be found here in our Dev Guide.

@BRT.SiteMenu back to top

Inserts the @BRT.SiteMenu() helper to create a list of links to parent, sibling and child pages.
Use this Snippet to add an unordered list of links to parent, sibling, and children pages - see an example here.

@item.GetFirstCategoryAbbrev() back to top


@RenderBody - the default editable page section back to top

Inserts the @RenderBody() Helper
Inserts the @RenderBody() Helper.  Used in Layouts to render the default editable page section - learn more here.

@RenderSection() - editable section back to top

Inserts the @RenderSection() Helper with a placeholder for the unique section name.

@Title - Page Title back to top

Inserts the @Title system variable in a layout or page
Inserts the @Title system variable.  This Snippet is used in layouts and pages source.

Bootstrap Well back to top

Inserts a Bootstrap well in a page or layout.
This Snippet is for use in sites built on the Bootstrap v. 3 framework.  It inserts a Bootstrap well and prompt the user for the text to be included in the well.  

This Snippet can be used in Page Design or Page Source view.

Example

  1. Place the cursor on the page where you would like to insert the well.
  2. Click Snippets, Select UI Bits, click Bootstrap Well
  3. Enter the text you would like to enclose in the well, click Insert
 

Save and publish the page. The result...  



 

CarouFredSel carousel of testimonials back to top


Content Digest back to top


Create a Drop Down Menu back to top


Custom Error Messages back to top


Download Lister back to top


Email: Button back to top


Email: Card with Image back to top


Email: Content Digest (Pulls Data) back to top


Email: Grids (Framer) back to top


Email: Image Float back to top


Email: Image Table (Framer) back to top


Email: Link Button back to top


Email: Quote Box back to top


Email: Registration Button back to top


Email: Section Box back to top


Email: Side Images (Framer) back to top


Email: Upcoming Events back to top


Embed Code - video, map, etc back to top


If field is not null back to top


Image Box back to top


Load a random header image back to top


News Article Detail back to top


News Article Index back to top


News Article List with Categories back to top


News Articles Index (Basic) back to top


Owl Carousel of Features back to top


Root Layout back to top


RSS Feed - in a page - for news back to top


RSS Feed - the layout back to top


Search by Zip back to top


Search Form & Results back to top


Search Results back to top


Secure Pages Layout back to top


Web/Records: Cards - Bootstrap 3 (Framer) back to top


Web/Records: Cards - Content Digest - Bootstrap 3 (Pulls Data) back to top


Want to learn more?

Call 800-924-5220 or

Schedule a demo