Login / Status
developer.Resource
Home . Documentation . Document Library . Extension Manuals
Sponsors
hosted by punkt.deTYPO3 and Open Source Magazine

1.4. 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.

  1. 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.

  2. 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.

  3. Create a plugin content in the “edit” page and select “NewsPlus” from the plugin list .

  4. Select “Edit news” from the “plugin mode” in the flex def menu.

  5. Set the “Starting point” to point to the news repository – where your news are saved.

  6. Save your page and take note of the ID of this page.

  7. Create a plugin content in the “Listing” page and select “NewsPlus” from the plugin list .

  8. Select “Search news” from the “plugin mode” in the flex def menu.

  9. Set the “Starting point” to point to the news repository – where your news are saved.

  10. Save your page.

  11. Create a second plugin content in the same “Listing” page and select “NewsPlus” from the plugin list .

  12. Select “List news” from the “plugin mode” in the flex def menu.

  13. Set the “PageID” to the page ID number of the “edit” page (step 3).

  14. Set the “PageID for backbutton” to the ID of the cuurent “listing” page.

  15. Set the “Starting point” to point to the news repository – where your news are saved.

  16. Save your page.

  17. 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.