.. You may want to use the usual include line. Uncomment and adjust the path. .. include:: ../Includes.txt ========================================== EXT: Extends tt\_news with FE-User Editing ========================================== :Author: Kasper Skårhøj :Created: 2002-11-01T00:32:00 :Changed by: Stefan Geith :Changed: 2006-02-17T10:56:33 :Email: typo3dev@geithware.de .. _EXT-Extends-tt-news-with-FE-User-Editing: EXT: Extends tt\_news with FE-User Editing ========================================== Extension Key: **sg\_newsplus** Copyright 2000-2005, , Docs by Norbert Desautels 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.com .. _Table-of-Contents: Table of Contents ----------------- **EXT: Extends tt\_news with FE-User Editing 1** **Introduction 1** What does it do? 1 Screenshots 2 **Users manual 5** **Administration 6** Template 6 Multi language 6 Reference 7 **To-Do list 7** **Changelog 7** .. _Introduction: Introduction ------------ .. _What-does-it-do: What does it do? ^^^^^^^^^^^^^^^^ - sg\_newsplus extension will let front end user modify or add news article within the context of the tt\_news extension. - Some features: - Front end and/or back end owner concept. - Control on what can be edit or just showed for specific front end user. - Front end search capability (by titles, categories, body text, type, front end user owner and status). - All tt\_news fields editable – support of upload and related news. .. _Screenshots: Screenshots ^^^^^^^^^^^ |img-1| *Illustration 1* *A back end config screen shoot* |img-2| *Illustration 2* *Search and result screen shoot* |img-3| *Illustration 3* *A Front End edit page* .. _Users-manual: Users manual ------------ sg\_newsplus makes extensive use of the **sg\_zfelib** extension and it is suggested to also read its manual. Here is a simple example on how to install the extension with search, complete listing and edit capability. First install the extension from the “Ext Manager” left menu option in the backend of Typo3. Some additional fields will be added to the tt\_news database. Create two pages in a secure area of your web site (where a login is necessary). One that will receive the news “search” and “listing” and another one that will be use to “edit” and create the content. You might also want to make sure that the “edit” page won't be shown in a menu. Create a plugin content in the “edit” page and select “NewsPlus” from the plugin list . Select “Edit news” from the “plugin mode” in the flex def menu. Set the “Starting point” to point to the news repository – where your news are saved. Save your page and take note of the ID of this page. Create a plugin content in the “Listing” page and select “NewsPlus” from the plugin list . Select “Search news” from the “plugin mode” in the flex def menu. Set the “Starting point” to point to the news repository – where your news are saved. Save your page. Create a second plugin content in the same “Listing” page and select “NewsPlus” from the plugin list . Select “List news” from the “plugin mode” in the flex def menu. Set the “PageID” to the page ID number of the “edit” page (step 3). Set the “PageID for backbutton” to the ID of the cuurent “listing” page. Set the “Starting point” to point to the news repository – where your news are saved. Save your page. Set the followinf typo3 variable in your template **setup** field. \# Force sg\_zfelib to give results on a search. plugin.tx\_sgnewsplus\_pi1.tt\_news.search.fixed.searchZero = 1 \# Here you specify the page ID containig the news categories plugin.tx\_sgnewsplus\_pi1.tt\_news.conf.category.foreign\_pid = *your news categories holder page ID* #Where the template is located (default to sg\_newsplus/pi1/news\_template.tmpl) \# plugin.tx\_sgnewsplus\_pi1.file.templateFile = EXT:sg\_newsplus/pi1/news\_template.tmpl \# Allow empty searches to return results plugin.tx\_sgnewsplus\_pi1.tt\_news.ctrl.EmptySearch = 1 \# Disable start and end time plugin.tx\_sgnewsplus\_pi1.tt\_news.ctrl.enablecolumns.starttime =0 plugin.tx\_sgnewsplus\_pi1.tt\_news.ctrl.enablecolumns.endtime = 0 plugin.tx\_sgnewsplus\_pi1.tt\_news.ctrl.enablecolumns.enabled = 1 \# Set the default search to display owner news. plugin.tx\_sgnewsplus\_pi1.tt\_news.ctrl.defaultSearch = own \# Allow the modifications of news content from the front end plugin.tx\_sgnewsplus\_pi1.edit = 1 plugin.tx\_sgnewsplus\_pi1.allow.onlyOwnImages=1 plugin.tx\_sgnewsplus\_pi1.allow { \# The FE user can only see his own news entries showOnlyOwnEntries=1 showOnlyOwnDetails=1 \# Here you can specify an administrator by its username that will have administration \# access and search options admin.user = *adminUserName* \# Here you can specify a group that has administrator access admin.group = *AdminGroupID* ... *more optional entries to fine tune access to news content (see below)* ... } At this point you should be able to view your news from the front end. .. _Administration: Administration -------------- .. _Template: Template ^^^^^^^^ The default template explanation here \- news\_single.tmpl, news\_list.tmpl and relation with tt\_news and news\_template.tmpl - .. _Multi-language: Multi language ^^^^^^^^^^^^^^ Two files can be use adjust the specific of your laguage environment. The file from sg\_newsplus called *locallang\_db.php* located in your **sg\_newsplus** extension folder (normally: ./typo3conf/ext/sg\_newsplus/locallang\_db.php) and the file *locallang.php* from the **sg\_zfelib** extension located in the installation folder (normally ./typo3conf/ext/sg\_zfelib/locallang.php). .. _Reference: Reference ^^^^^^^^^ .. ### BEGIN~OF~TABLE ### .. _Unknown-Property: ((Unknown Property)) """""""""""""""""""" .. container:: table-row Property Data type Description Default .. _Unknown-Property: ((Unknown Property)) """""""""""""""""""" .. container:: table-row Property Data type Description Default .. _Unknown-Property: ((Unknown Property)) """""""""""""""""""" .. container:: table-row Property Data type Description Default .. _Unknown-Property: ((Unknown Property)) """""""""""""""""""" .. container:: table-row Property Data type Description Default .. ###### END~OF~TABLE ###### .. _To-Do-list: To-Do list ---------- \- Frontend Rich Text Editor (RTE) using rtehtmlarea extension for body text. .. _Changelog: Changelog --------- - 0.13.2 New Pluginmode 'remember this page for [back]', that creates NO output, but remembersactual URL in a session-variable, that is used to create the [back]-button in single-view. - 0.13.0 French translation (byNorbert Desautels ) included;First throw at the docs - Docs created byNorbert Desautels - 0.12.5 Some smaller Bugfixes. - 0.12.4 Bugfix: /#BACK\_URL### - 0.12.3 New Feature: fixed records (for FE-User Editing) - 0.12.1 Bugfix: Field 'type' made compatible with tt\_news >2.2 - 0.12.0 First beta release: Changed class-names for tag-processing to match namespace.Zfelib may now be installed as global. |img-4| EXT: Extends tt\_news with FE-User Editing - 6 .. ######CUTTER_MARK_IMAGES###### .. |img-1| image:: img-1.png .. :align: left .. :border: 0 .. :id: Graphic6 .. :name: Graphic6 .. :width: 100% .. |img-2| image:: img-2.png .. :align: left .. :border: 0 .. :id: Graphic5 .. :name: Graphic5 .. :width: 100% .. |img-3| image:: img-3.png .. :align: left .. :border: 1 .. :id: Graphic4 .. :name: Graphic4 .. :width: 99% .. |img-4| image:: img-4.png .. :align: left .. :border: 0 .. :height: 32 .. :id: Graphic1 .. :name: Graphic1 .. :width: 102