Other

You are here:

Other Filters

These filters provide a various utility roles in creating your lava.

 

AddLinkTagToHead

Show Details
v4.0

Adds a link to the HTML head of the current page.

 

AddMetaTagToHead

Show Details
v4.0

Creates a meta tag that will be inserted into the HTML head. This is useful for adding social media links.

 

Postback

Show Details
v3.0

This is a very specialized Lava filter that helps to wire-up ASP.Net postbacks. This is only available on specific blocks that provide 'Postback Commands'. The 'Group Details Lava' is an example of a block that provides these hooks.

 

SetPageTitle

Show Details
v4.0

Takes a string as input and sets the page's title.

 

PropertyToKeyValue

Show Details
v4.0

Takes a property and returns it as a key/value pair. This is helpful for iterating over a list of properties.

 

Page

Show Details
v4.0

Returns information about the current page.

 

PageRedirect

Show Details
v4.0

Will redirect the page to the provided URL.

 

Property

Show Details
v5.0

Returns the property of a provided object. This often saves you from having to assign an object to a variable to get just one of its properties.

 

HasRightsTo

Show Details
v6.0

This filter helps you check the security of the model you pass it.

 

Notes

Show Details
v7.0

Retrieves notes for the provided entity.

 

PageParameter

Show Details
v7.0

Returns the value of a specified page parameter.

 

FromCache

Show Details
v7.0

Reads objects from the Rock cache which will reduce the number of database reads your Lava produces.

 

ResolveRockUrl

Show Details
v7.0

This filter helps to resolve the application path in Rock using ~/ for the application home and ~~/ for the theme home. This is helpful when writing Lava that may be used by several organizations.

 

AsBoolean

Show Details
v7.0

Converts the input to a Boolean (true/false) value.

 

AsInteger

Show Details
v7.0

Converts the input to an integer value.

 

AsDecimal

Show Details
v7.0

Converts the input to a decimal value.

 

AsDouble

Show Details
v7.0

Converts the input to a double value (which has less precision than a decimal).

 

AsString

Show Details
v7.0

Converts the input to an string value.

 

AsDateTime

Show Details
v7.0

Converts the input to a DateTime value.

 

Debug

Show Details
v7.0

The debug filter provides you with a ton of information on the variables you have access to in your Lava.

 

Client

Show Details
v7.0

Returns information about the client browser.

 

AddCssLink

Show Details
v7.0

Adds a CSS link to the page. If the link has already been previously registered (by a block or other Lava) it will not be duplicated.

 

AddScriptLink

Show Details
v7.0

Adds a script link to the page. If the link has already been previously registered (by a block or other Lava) it will not be duplicated.

 

Url

Show Details
v7.0

The Url filter allows you to easily get access to parts of a URL without a ton of string manipulation.

 

Base64Encode

Show Details
v7.0

Converts a binary file to a base-64 encoded string.

 

GroupById

Show Details
v7.0

Provides a full Group object by providing an Id of the group.

 

GroupByGuid

Show Details
v7.0

Returns a full Group object from the Guid of the group.

 

CreateShortLink

Show Details
v8.0

Creates a URL short link for the provided URL.

 

ToJSON

Show Details
v4.0

Returns a JSON representation of the object. This is useful if you are wanting to return the object for use in Javascript.

 

FromJSON

Show Details
v5.0

Takes a JSON string and makes a Lava object from it.