Other Filters

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

 

AddLinkTagToHead

Show Details
Server: v4.0

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

 

AddMetaTagToHead

Show Details
Server: 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
Server: 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
Server: v4.0

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

 

PropertyToKeyValue

Show Details
Server: 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
Server: v4.0

Returns information about the current page.

 

PageRedirect

Show Details
Server: v4.0

Will redirect the page to the provided URL.

 

Property

Show Details
Server: v5.0 Mobile: v1.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
Server: v6.0

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

 

Notes

Show Details
Server: v7.0

Retrieves notes for the provided entity.

 

PageParameter

Show Details
Server: v7.0

Returns the value of a specified page parameter.

 

FromCache

Show Details
Server: v7.0

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

 

ResolveRockUrl

Show Details
Server: 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
Server: v7.0 Mobile: v1.0

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

 

AsInteger

Show Details
Server: v7.0 Mobile: v1.0

Converts the input to an integer value.

 

AsDecimal

Show Details
Server: v7.0 Mobile: v1.0

Converts the input to a decimal value.

 

AsDouble

Show Details
Server: v7.0 Mobile: v1.0

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

 

AsString

Show Details
Server: v7.0 Mobile: v1.0

Converts the input to an string value.

 

AsDateTime

Show Details
Server: v7.0 Mobile: v1.0

Converts the input to a DateTime value.

 

Debug

Show Details
Server: 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
Server: v7.0

Returns information about the client browser.

 

AddCssLink

Show Details
Server: 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
Server: 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
Server: v7.0 Mobile: v1.0

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

 

Base64Encode

Show Details
Server: v7.0

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

 

GroupById

Show Details
Server: v7.0

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

 

GroupByGuid

Show Details
Server: v7.0

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

 

CreateShortLink

Show Details
Server: v8.0

Creates a URL short link for the provided URL.

 

Md5

Show Details
Server: v10.0 Mobile: v1.0

Converts a string into an MD5 hash.

 

Sha1

Show Details
Server: v10.0 Mobile: v1.0

Converts a string into a SHA-1 hash.

 

Sha256

Show Details
Server: v10.0 Mobile: v1.0

Converts a string into a SHA-256 hash.

 

HmacSha1

Show Details
Server: v10.0 Mobile: v1.0

Converts a string into a SHA-1 hash using a hash message authentication code (HMAC).

 

HmacSha256

Show Details
Server: v10.0 Mobile: v1.0

Converts a string into a SHA-256 hash using a hash message authentication code (HMAC).

 

XamlWrap

Show Details
Server: v10.0 Mobile: v1.0

Wraps XAML in CDATA tags to make it XML compliant.

 

PersistedDataset

Show Details
Server: v10.0

Returns data contained in a Persisted Dataset as a Lava object.

 

AppendFollowing

Show Details
Server: v10.0

Returns the following status for the currently logged in user to the results of an entity command or Persisted Dataset.

 

FilterFollowed

Show Details
Server: v10.0

Returns a subset of followed entities for the current user from either a Persisted Dataset or an entity command.

 

FilterUnfollowed

Show Details
Server: v10.0

Returns a subset of entities that have not been followed by the current user from either a Persisted Dataset or an entity command.

 

EntityFromCachedObject

Show Details
Server: v11.0

Returns a full entity object loaded from the database from it's cached counterpart.

 

ImageUrl

Show Details
Server: v12.0

Simplifies making an image URL with a fallback.

 

AddResponseHeader

Show Details
Server: v12.0

Adds a header to the HTTP response. This allows you to set custom headers. Note that any headers already being set in Rock will overrite the values you provide. These should only be used to add custom headers.

 

RockInstanceConfig

Show Details
Server: v12.0

Shows configuration values for the current Rock instance.

 

ToJSON

Show Details
Server: v4.0 Mobile: v1.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
Server: v5.0 Mobile: v1.0

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