.. You may want to use the usual include line. Uncomment and adjust the path. .. include:: ../Includes.txt ==================================== EXT: Readable name of your extension ==================================== :Created: 2010-02-18T17:33:18 :Changed: 2012-05-16T23:29:11.960000000 :Classification: extensionkey :Description: The keywords help with categorizing and tagging of the manuals. You can combine two or more keywords and add additional keywords yourself. Please use at least one keyword from both lists. If your manual is NOT in english, see next tab "language" ---- forEditors (use this for editors / german "Redakteure") forAdmins (use this for Administrators) forDevelopers (use this for Developers) forBeginners (manuals covering TYPO3 basics) forIntermediates (manuals going into more depth) forAdvanced (covering the most advanced TYPO3 topics) see more: http://wiki.typo3.org/doc_template#tags ---- :Keywords: keywords comma-separated :Author: Author Name :Email: your@email.com :Info 4: :Language: en |img-1| |img-2| EXT:Content with pagebrowser- ws\_contentpagebrowser .. _EXT-Content-with-PageBrowser: EXT: Content with PageBrowser ============================= Extension Key: ws\_contentpagebrowser Language: en Keywords: content, pagebrowser, integrator Copyright 2000-2010, Nikolay Orlenko, 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: Table of Contents ----------------- `EXT: Content with PageBrowser 1 <#__RefHeading__29127_568008793>`_ **`Introduction 3 <#__RefHeading__29129_568008793>`_** `What does it do? 3 <#__RefHeading__29131_568008793>`_ **`Users manual 4 <#__RefHeading__29133_568008793>`_** **`Configuration 5 <#__RefHeading__29135_568008793>`_** `Inserting plugin like usual content element 5 <#__RefHeading__29188_568008793>`_ `Inserting plugin via TypoScript 5 <#__RefHeading__29190_568008793>`_ `Reference 5 <#__RefHeading__29139_568008793>`_ **`To-Do list 7 <#__RefHeading__29141_568008793>`_** .. _Introduction: Introduction ------------ .. _What-does-it-do: What does it do? ^^^^^^^^^^^^^^^^ Very often we do not need to create and manage special content it is better to use standard TYPO3 content elements such as Text, Text&Pictures, Images, etc. But all standard elements are shown on one page and there is no pagebrowser for them in TYPO3.This extension tries to solve problem and separates content elements from one page into many pages using pagebrowser. .. _Users-manual: Users manual ------------ - Extension uses “ **pagevrowse** ” extension by D. Dulepov for link generation. - Extension works like standard plugin. In this case you need to set storage pid where content elements are - You can also use extension in your TypoScript. In this case extension will get current page where plugin is invoke and render all current content elements. .. _Configuration: Configuration ------------- Install “pagebrowse” extension by D.Dulepov Install extension “ws\_contentpagebrowser” in Extension Manager Include static template “Content pagebrowser” in main TypoScript Template .. _Inserting-plugin-like-usual-content-element: Inserting plugin like usual content element ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Insert plugin “Content pagebrowser” on that page where you want to have content with page browser Set value for storage folder. This folder or page should store all you needed content Set limit content elements value per one page. .. _Inserting-plugin-via-TypoScript: Inserting plugin via TypoScript ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ This method you should use when you want to render content elements in some FE pages, but not in System folders. In normal situations we use following TypoScript code: :: page.10 < styles.content.get But for pagebrowser implementation you should write the following: :: page.10 < plugin.tx_wscontentpagebrowser_pi1 .. _Example: Example """"""" :: plugin.tx_wscontentpagebrowser_pi1 { limit = 5 content = CONTENT content { table = tt_content select { pidInList = this orderBy = sorting languageField = sys_language_uid where = CType IN ("text","textpic","image","multimedia","media") } } } .. _Reference: Reference ^^^^^^^^^ Possible subsections: Reference (TypoScript) .. ### BEGIN~OF~TABLE ### .. _storagePid: storagePid """""""""" .. container:: table-row Property storagePid Data type int Description Storage Pid Folder where should be content elements for redering Default this .. _limit: limit """"" .. container:: table-row Property limit Data type int Description Limitation per page. Default 10 .. _content: content """"""" .. container:: table-row Property content Data type CObject Description Main configuration of content rendering. Should has the same configuration with CONTENT Ctype.Here you can set any table what you want, not only tt\_content. But also tx\_\*, tt\_\*, fe\_\*, user\_\* and static\_\* Default .. ###### END~OF~TABLE ###### [tsref:(cObject).TEST] .. _generated: ((generated)) """"""""""""" .. _Example-1: Example 1 ~~~~~~~~~ If you want to render content only from one column, then indicate this column in where section of select configuration: :: plugin.tx_wscontentpagebrowser_pi1 { content = CONTENT content { table = tt_content select { pidInList = this orderBy = sorting languageField = sys_language_uid where = CType IN ("text","textpic") AND colPos=0 } renderObj = COA renderObj { wrap =
  • |
  • 10 = TEXT 10 { required = 1 wrap =
    |
    field = title } 20 = TEXT 20 { required = 1 wrap =
    |
    field = bodytext } } } .. _Example-2: **Example 2** ~~~~~~~~~~~~~ :: Content specific column from all subpages of the current site (provided by Robert Wildling) plugin.tx_wscontentpagebrowser_pi1 { storagePid = {$plugin.tx_wscontentpagebrowser_pi1.storagePid} limit = {$plugin.tx_wscontentpagebrowser_pi1.limit} content > content = CONTENT content { table = pages select { pidInList = this orderBy = sorting } renderObj = COA renderObj { # save current uid of page 10 = LOAD_REGISTER 10.site_uid.field = uid 20 = CONTENT 20 { table = tt_content select { # get pid value from the stored uid value pidInList.data = register:site_uid # define the column with the contents to list where = colPos=0 andWhere = CType IN ("text","textpic","image","multimedia","media") } renderObj = COA renderObj { 10 = TEXT 10.field = header 10.wrap =

    |

    20 = TEXT 20.field = bodytext 20.wrap =

    | 30 = TEXT 30.value = ...mehr 30.typolink.parameter.data = register:site_uid 30.wrap =  |

    } } # clear the register 99 = RESTORE_REGISTER } } } .. _To-Do-list: To-Do list ---------- - Create hook for supporting of custom page browser generation method - Improve documentation with better examples and screenshots. 8 .. ######CUTTER_MARK_IMAGES###### .. |img-1| image:: img-1.png .. :align: left .. |img-2| image:: img-2.png .. :border: 0 .. :height: 21 .. :hspace: 9 .. :id: Grafik2 .. :name: Grafik2 .. :width: 87