Skip to content
This repository has been archived by the owner on Mar 18, 2021. It is now read-only.

vkemeter/empty_colpos_content

Repository files navigation

Empty Colpos Content

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.

About

XClass for for hooking into empty colpos Layouts

Resources

License

Stars

Watchers

Forks

Packages

No packages published