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: 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¶
Extension Key: sg_newsplus
Copyright 2000-2005, , <typo3dev@geithware.de>
Docs by Norbert Desautels <ndesautels@gdgsystems.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.com
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¶
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¶
Illustration 1
A back end config screen shoot
Illustration 2
Search and result screen shoot
Illustration 3
A Front End edit page
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¶
Template¶
The default template explanation here
- news_single.tmpl, news_list.tmpl and relation with tt_news and news_template.tmpl -
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).
To-Do list¶
- Frontend Rich Text Editor (RTE) using rtehtmlarea extension for body text.
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 <ndesautels@gdgsystems.com>
- 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.
EXT: Extends tt_news with FE-User Editing - 6