Skip to content

{exp:stash:split_list}

croxton edited this page Oct 9, 2014 · 7 revisions

Split off part of a list where a given column matches a regular expression.

Parameters

name = [ string ]

The name of the new list

list = [ string ]

The name of the original list

match = [ #regex# ]

Match a column in the list against a regular expression. Only rows in the original list that match will be appended to the new list.

against = [ list column ]

The list column to match against.

Example

{exp:stash:split_list 
	name="featured_items"
	list="items"
	match="#^featured$#"
	against="category"
}
Clone this wiki locally