Node Collection #

A Node Collection is the object you deal with in your templates, when handling a Vizy Field. You can also call the field directly to return the raw HTML, which using the | raw Twig filter, and be rendered as HTML.

{{ entry.vizyField | raw }}

Methods #

MethodDescription
getField()Returns the Vizy field model.
getNodes()Returns a collection of Node objects.
renderHtml()Return a string of pre-rendered HTML. This will use defaults for nodes, and any Block Type Templates for Vizy Blocks.
all()An alias for getNodes().
query()Returns the an Array Query object for querying the collection of nodes.
getRawNodes()Returns the raw node data, exactly as it's stored in the database's content table.

Get started with Vizy

Available for Craft 3. Get it from the plugin store.