2017 © Pedro Peláez
 

typo3-cms-extension folder-cobj

TypoScript Content Object to load system folders

image

smichaelsen/folder-cobj

TypoScript Content Object to load system folders

  • Friday, June 8, 2018
  • by smichaelsen
  • Repository
  • 1 Watchers
  • 3 Stars
  • 576 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 36 % Grown

The README.md

TypoScript Content Object FOLDER

The Problem

Existing TYPO3 TypoScript Content Objects make it hard to load sysfolders:, (*1)

  • The CONTENT cObj is restricted to not load pages with doktype 200 and above (sysfolders have 254).
  • If you want to use the RECORDS cObj you need to know the uid of the sysfolder.

The Solution

This extension introduces a new TypoScript cObj called FOLDER., (*2)

Example to load one folder uid:, (*3)

lib.footerNavigationPid = FOLDER
lib.footerNavigationPid {
  containsModule = tx_myext_footernavigation
  restrictToRootPage = 1
  renderObj = TEXT
  renderObj.field = uid
  limit = 1
}

This will load the uid of the folders that has tx_myext_footernavigation assigned in the pages.module (contains module) field - and is on the first level of the current rootline., (*4)

Example to load a list of folder uids:, (*5)

lib.footerNavigationPid = FOLDER
lib.footerNavigationPid {
  containsModule = tx_myext_footernavigation
  renderObj = TEXT
  renderObj.field = uid
  renderObj.wrap = |,
  stdWrap.substring = 0,-1
}

This will load the uids of all folders that have tx_myext_footernavigation assigned in the pages.module (contains module) field. The last trailing comma is removed by stdWrap.substring = 0,-1., (*6)

Properties

property name type default description
containsModule string/stdWrap empty Loads only sysfolders that match the given string with their module field.
recursive int/stdWrap 0 Is only applied if restrictToRootPage is true and will result in looking for matching sysfolders nested within the current root page. The numeric value of this property provides the depth - how far the pagetree will be resolved. Use only if neccessary as it impacts performance.
renderObj cObj empty The cObject used for rendering the loaded sysfolders.
restrictToRootPage boolean/stdWrap false By default sysfolders will be loaded from all over the page tree. If this is true, sysfolders will only be loaded from the current root page (i.e. first page of the current rootline). See also recursive.
doktypes intList/stdWrap 254 By default only folders (doktype=254) will be loaded (hence the name). You can provide a comma separated list of allowed doktypes.
limit int/stdWrap empty Limits the results of folders being loaded
stdWrap stdWrap empty Performs stdWrap operations on the output of the FOLDER content object

The Versions

08/06 2018

dev-master

9999999-dev

TypoScript Content Object to load system folders

  Sources   Download

GPL-2.0+

The Requires

 

04/05 2018

1.1.0

1.1.0.0

TypoScript Content Object to load system folders

  Sources   Download

GPL-2.0+

The Requires

 

11/01 2018

dev-task/typo3-v9-compat

dev-task/typo3-v9-compat

TypoScript Content Object to load system folders

  Sources   Download

GPL-2.0+

The Requires

 

05/04 2017

1.0.1

1.0.1.0

TypoScript Content Object to load system folders

  Sources   Download

GPL-2.0+

The Requires

 

05/04 2017

dev-task/typo3-8-7-compat

dev-task/typo3-8-7-compat

TypoScript Content Object to load system folders

  Sources   Download

GPL-2.0+

The Requires

 

01/03 2017

1.0.0

1.0.0.0

TypoScript Content Object to load system folders

  Sources   Download

GPL-2.0+

The Requires