Lava Filters

Overview

A number of lava filters will be registered with your server that give you some helpful tools in working with the project system. To prevent possibly interference with any future lava filters that might be added to the system, all our filters are prefixed with BBM_.

BBM_FromProjectMarkdown

Project and task details are written in the markdown language. While Rock has its own filter that converts markdown into HTML, this filter adds a few additional features as they relate to the project management system. Two such features are person mentions as well as project references.

Example

{{ project.Details | BBM_FromProjectMarkdown }}

BBM_MyProjects

Retrieves an array of projects that are related to the person specified as the input object. Takes an optional parameter that allows you to specify which projects you are interested in.

  • Assigned (default) - returns projects that are assigned to the person.
  • Requsted - returns projects that have the person listed as the requester.
  • Followed - returns projects that the person is following.

In all cases, only active projects are returned.

Example

{% assign myProjects = CurrentPerson | BBM_MyProjects:'Requested' %}

BBM_MyTasks

Retrieves an array of tasks that are related to the person specified as the input object. Takes an optional parameter that allows you to specify which tasks you are interested in.

  • Assigned (default) - returns tasks that are assigned to the person.
  • Followed - returns tasks that the person is following.

In all cases, only active tasks are returned.

Example

{% assign myTasks = CurrentPerson | BBM_MyTasks %}

BBM_ProjectById

This filter loads a project given its Id number. This was created before entity commands came into existence, so either can be used. The input can either be an Id number or a Guid value.

Example

{% assign project = 46 | BBM_ProjectById %}

BBM_ProjectRoute

Allows you to build a URL route to view the project details page for the given project. This is often helpful if you are sending an e-mail and wish it to contain a link to view the project details. Input can be either an Id number, Guid value or a Project object.

Example

<a href="{{ 46 | BBM_ProjectRoute }}">Details</a>

BBM_TaskById

This filter loads a task given its Id number. This was created before entity commands came into existence, so either can be used. The input can either be an Id number or a Guid value.

Example

{% assign task = 46 | BBM_TaskById %}