Shortcodes

Format:

[[ExtendedViewHelperName attrib1="val" attrib2="1, 2, 3" attrib3="a, b, c"]]

Shortcodes can be disabled using the disabled attribute to stop them being processed (this is useful for documentation purposes).


Shortcodes are parsed by Essential_View_Filter_Shortcode and converted into a call to the corresponding extended view helper e.g.:

[[News limit="10" is_visible="1" order="date DESC, name ASC" partial="news/list-partial.phtml"]]

Becomes:

$this->News()
    ->setLimit(10)
    ->setIsVisible(1)
    ->setOrder(array('date DESC', 'name ASC')
    ->setPartial('news/list-partial.phtml');


The following example retrieves a Static Block item from the database:

[[StaticBlockItem identifier="test-block" disabled]]

I am a richtext Static Block named "Test Block". My id is 1 and my identifier is "test-block".

Related nodes
$nodes = $this->node->getCollection()->getRelated();

No related nodes for this node