Jump to content

Pages. Template plugin "Block"

newbie LAC

Recommended Posts


Please add ability to add the argument "orientation" to the block template plugin

{block="block_key" orientation="vertical"}

You use \IPS\cms\Blocks\Block::display. That method has 2nd param

	 * Parse a block for display
	 * Wrapped in a static method so we can catch the OutOfRangeException and take action.
	 * @param	string|int|\IPS\cms\Blocks\Block	$block	Block ID
     * @param	string	$orientation	Orientation
	 * @return	string	Ready to display HTML
	public static function display( $block, $orientation=NULL )

Of course I can do 

{expression="\IPS\cms\Blocks\Block::display('block_key', 'vertical')"}


Link to comment
Share on other sites

  • 5 months later...


This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...