Jump to content

Pages. Template plugin "Block"

Featured Replies

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

I've raised your request internally in our engineering changes tracker.

  • 5 months later...
On 8/11/2017 at 5:51 AM, bfarber said:

I've raised your request internally in our engineering changes tracker.

Has this been added to the latest version?

  • Author
9 hours ago, Brian A. said:

Has this been added to the latest version?

IPS 4.2.7 no.

10 hours ago, newbie LAC said:

IPS 4.2.7 no.

Oh, okay. Thanks for telling me.

Archived

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

Recently Browsing 0

  • No registered users viewing this page.