Jump to content

Pages. Template plugin "Block"


newbie LAC

Recommended Posts

Posted

Hello,

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')"}

Thanks

  • 5 months later...

Archived

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

  • Recently Browsing   0 members

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