DEPRECATION WARNING
This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.
EXT: Multiple Content View Demo¶
Created: | 2010-02-18T17:33:18 |
---|---|
Changed by: | Jürgen Furrer |
Changed: | 2014-03-17T23:04:42 |
Classification: | jfmulticontent_viewdemo |
Keywords: | view, jfmulticontent, hook |
Author: | Juergen Furrer |
Email: | juergen.furrer@gmail.com |
Info 4: | |
Language: | en |
EXT: Multiple Content View Demo - jfmulticontent_viewdemo
EXT: Multiple Content View Demo¶
Extension Key: jfmulticontent_viewdemo
Language: en
Keywords: view, jfmulticontent, hook
Copyright 2000-2010, Juergen Furrer, <juergen.furrer@gmail.com>
This document is published under the Open Content License
available from http://www.opencontent.org/opl.shtml
The content of this document is related to TYPO3
- a GNU/GPL CMS/Framework available from www.typo3.org
Table of Contents¶
EXT: Multiple Content View Demo 1
`Introduction 3 <#__RefHeading__337_227100397>`_
`Users manual 4 <#__RefHeading__341_227100397>`_
`ChangeLog 5 <#__RefHeading__343_227100397>`_
Introduction¶
What does it do?¶
This Extension demonstrates how to use the HOOK in jfmulticontent to add own views, so its possible to show every content needed.
Screenshots¶
Users manual¶
To add your own view, you will need the following:
((generated))¶
Create your class¶
Create a class with the following methods:
- public function main($content, $conf, $parent) This method is called first and will get the content , the configuration (from jfmulticontent) and the parent cObject . Here you will create the output and store it into class parameters titles, elements and ids
- public function getIdentifier() This method should return the unique identifier for the view, use a prefix to ensure the uniqueness
- public function getName() This method should return the readable name of the view (use $GLOBAL['LANG'] for multilingual)
- public function getTitles() In case of TABS, this method returns an array with all titles of the tabs
- public function getElements() In case of TABS, this method returns an array with all panels
- public function getIds() Returns an array with an unique id (number) for every single item
- public function isActive() Returns true if this view is acitve
Example:¶
EXT:jfmulticontent_viewdemo/class.tx_jfmulticontent_viewdemo.php
Add hook to ext_localconf¶
Add a hook to your localconf, witch points to your class:
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['jfmulticontent']['getViews'] [$_EXTKEY . '_1'] = 'EXT:' . $_EXTKEY . '/class.tx_jfmulticontent_viewdemo.php:tx_jfmulticontent_viewdemo';
Example:¶
EXT:jfmulticontent_viewdemo/ext_localconf.php