supseven/empty_colpos_content

XClass for for hooking into empty colpos Layouts

Installs: 880

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 1

Forks: 0

Open Issues: 0

Type:typo3-cms-extension

v2.0.0 2019-08-03 14:14 UTC

This package is auto-updated.

Last update: 2021-04-09 09:40:44 UTC


README

Whats that?

If You have BackendLayouts with a Column without any Colpos, and You want to display information in that Column, simply add the newly added Hook.

Example ext_localconf.php

 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['drawColPos'][1542873608]
 	= \YourNameSpace\YourExtension\Hooks\Backend\PageLayoutView::class .'->render';

Use the shipped Hook as an Example and change it for Your needs.

If no own Hook is used, with installation of this Extension, an Example Hook is implemented.

Use Extension Configuration to make this visible to all or just admin Users.

Example BackendLayout Config

mod {
	web_layout {
		BackendLayouts {
			Default {
				title = Home
				config {
					backend_layout {
						colCount = 1
						rowCount = 3
						rows {
							1 {
								columns {
									1 {
										name = Main
										colPos = 0
									}
								}
							}
							2 {
								columns {
									1 {
										name = Something
										emptyColPos = 0
									}
								}
							}
							3 {
								columns {
									1 {
										name = Something Else
										emptyColPos = 1
									}
								}
							}
                        }
					}
				}
			}
		}
	}
}

KTHXBYE! Volker.