Other

You are here:

Other Filters

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

 

AddLinkTagToHead

Show Details

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

 

AddMetaTagToHead

Show Details

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

 

Postback

Show Details

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

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

 

PropertyToKeyValue

Show Details

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

 

Page

Show Details

Returns information about the current page.

 

PageRedirect

Show Details

Will redirect the page to the provided URL.

 

Property

Show Details

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

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

 

Notes

Show Details

Retrieves notes for the provided entity.

 

PageParameter

Show Details

Returns the value of a specified page parameter.

 

FromCache

Show Details

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

 

ResolveRockUrl

Show Details

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

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

 

AsInteger

Show Details

Converts the input to an integer value.

 

AsDecimal

Show Details

Converts the input to a decimal value.

 

AsDouble

Show Details

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

 

AsString

Show Details

Converts the input to an string value.

 

AsDateTime

Show Details

Converts the input to a DateTime value.

 

Debug

Show Details

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

 

Client

Show Details

Returns information about the client browser.

 

AddCssLink

Show Details

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

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

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

 

Base64Encode

Show Details

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

 

GroupById

Show Details

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

 

GroupByGuid

Show Details

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

 

CreateShortLink

Show Details

Creates a URL short link for the provided URL.

 

Md5

Show Details

Converts a string into an MD5 hash.

 

Sha1

Show Details

Converts a string into a SHA-1 hash.

 

Sha256

Show Details

Converts a string into a SHA-256 hash.

 

HmacSha1

Show Details

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

 

HmacSha256

Show Details

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

 

XamlWrap

Show Details

Wraps XAML in CDATA tags to make it XML compliant.

 

PersistedDataset

Show Details

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

 

AppendFollowing

Show Details

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

 

FilterFollowed

Show Details

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

 

FilterUnfollowed

Show Details

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

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

 

ToJSON

Show Details

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

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