Other

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 a 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 its cached counterpart.

 

ImageUrl

Show Details

Simplifies making an image URL with a fallback.

 

AddResponseHeader

Show Details

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

 

WriteCookie

Show Details

Sets a HTTP cookie for the current user session. Cookies provide a means of storing information about the current user's session that can be accessed in subsequent requests.

 

RockInstanceConfig

Show Details

Shows configuration values for the current Rock instance.

 

ReadCookie

Show Details

Gets the value of a HTTP cookie for the current user session.

 

RunLava

Show Details

Executes Lava that is inside a string.

 

FromBase64

Show Details

Decodes the base 64 encoded string and returns the resulting data.

 

PageRoute

Show Details

Converts a page identifier into a URL string.

 

IsFollowed

Show Details

Takes an entity object as input and tests if it is being followed by the current person. Returns a boolean value of either true or false.

 

UniqueIdentifier

Show Details

Generates a new GUID (UUID) string. These are generally considered to be globally unique. This makes them ideal to use inside a shortcode where you need to identifier an HTML element by id but know the shortcode may be used twice on the same page.

 

SetUrlParameter

Show Details

Sets a parameter in the input URL string and returns the updated URL.

 

IsInDataView

Show Details

Takes the given Entity or Entity Id and returns a boolean that indicates whether the entity is in the data view or not.

 

RenderStructuredContentAsHtml

Show Details

Takes the given structured content and renders it as HTML.

 

ToIdHash

Show Details

Returns an alphanumeric string that can be used to uniquely identify a Rock Entity.

 

FromIdHash

Show Details

Returns a Rock Entity Id from an IdHash string generated by the ToIdHash filter.

 

AppendWatches

Show Details

Returns information about whether the current person has watched various media files provided. This filter is highly customizable to work in various different scenarios.

 

AddToMergeFields

Show Details

Allows you to add a new item to the provided Lava merge fields.

 

GuidToId

Show Details

Converts one or more entity Guid identifiers to corresponding Id values for the specified entity type.

 

CreateEntitySet

Show Details

Creates a new EntitySet from a list of entity identifiers of the specified type.

 

AppendSegments

Show Details

Adds personalization segment information for the currently logged in user to the results of an entity command or Persisted Dataset.

 

AsGuid

Show Details

Converts the input to a Guid value.

 

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.

Subscribe To Our Newsletter

Rock is a project of the Spark Development Network.