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.

Add adresses and RgGooglemap to TT News

Author:Kasper Skårhøj
Created:2002-11-01T00:32:00
Changed by:Lina Wolf
Changed:2011-02-06T01:16:02.750000000
Classification:lonewsaddress
Description:Enables TT_News for RgGooglemap, adds additional markers for adress output.
Keywords:tt_news, addresses, news, googlemaps, rggooglemap
Author:LinaWolf
Email:2010@lotypo3.de
Info 4:
Language:en

img-1 img-2 Add adresses and RgGooglemap to TT News - lonewsaddress

Add adresses and RgGooglemap to TT News

Extension Key: lonewsaddress

Language: en

Keywords: tt_news, addresses, news, googlemaps, rggooglemap

Copyright 2000-2009, LinaWolf, <2010@lotypo3.de>, http://www.typo3-blog.net

Developed for http://www.magenband-op.info

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

Add adresses and RgGooglemap to TT News 1

`Introduction 3 <#1.1.Introduction|outline>`_

What does it do? 3

Screenshotst 3

References 4

`Installation 5 <#1.2.Installation|outline>`_

Without the use of rggooglemap 5

With use of rggooglemap 5

`Users manual 6 <#1.3.Users%20manual|outline>`_

`Administration 7 <#1.4.Administration|outline>`_

Configuration 7

Usage 7

`Template Markers 8 <#1.5.Template%20Markers|outline>`_

Creating userdefined markers by typoscript 8

`Known problems 9 <#1.6.Known%20problems|outline>`_

Introduction

What does it do?

  • This Extension adds additional fields to tt_news that can be used for adress and contactdata of new sauthor / place where the news happened or other cases where it is desred to add addressdata to new.
  • In opposite to the excisting extensions adding adressdata to tt_news this extension also enables backend-geocoding if rggooglemap was installed.
  • All new markers are fully configurable by typoscript.
  • Adds hCard and vCard Support see: http://de.wikipedia.org/wiki/Vcard just add ###VCARD_LINK### marker to your tt_news template

Screenshotst

Screenshots Backend

img-3

img-4

References

The following web pages are using the extension. If you want your web site to be listed here, send me a message.

http://www.magenband-op.info

Installation

Without the use of rggooglemap

First install tt'_news. Then just upload the extension in the extension manager and install. Include the static templates in your template.

With use of rggooglemap

First install tt_news.

After tt_news is uploaded and installed properly upload and install lonewsaddress.

Then install tt_address, even if you dont need this extension, rggooglemaps will require it.

Then properly install rggooglemap, see the corrsponding documentation under http://wiki.typo3.org/index.php/Rggooglemap . At this time rggooglemap has no manual in the TER yet.

Register tt_news with rggooglemap in Extension-Manager

Now you have to tell the rggooglemap-Extension, that you added a new table. Go to the Extension-Manager, click on rggooglemap, then you find the configuration of the extension. There is a field "Supportet tables, be careful!", here you have to fill in the name of your table “tt_news” (comma seperated). This step is very important, otherwise theautomatic backend-geocoding won't work.

img-5

Import the static templates

Import the static templates of lonewsaddress in your root-template or page-template.

Done.

Users manual

The users just have to insert the additional adressdata with theire news.

img-6

If rggooglemap is not installed geocodes ca be inserted by hand in the corresponding tab, otherwise they will be genererated the first time the map is called:

img-7

If it is installed the coordinates will usually fill in automatically. Otherwise you can choose the position by clicking on the x beside the coordinates just as known from rggooglemap

img-8

Administration

Configuration

Up to now all configuration can be done by Typoscript. Please check the existing typoscript.

Template Markers

The template markers can be fully configured by typoscript where all tt_news fields are availible as fields. The markers can be used whereever a single news record is displayed. The following Markers are predefined:

  • ###VCARD_LINK### Link to vCard Download
  • ###HCARD### Adress Output as hCard
  • ###ADDRESS### Street +Number
  • ###ZIP###
  • ###CITY###
  • ###CONTACT_FORM### A link to a contact formular if defined as constant
  • ###LNG### geoccoding longditude
  • ###LAT### and latitude
  • ###MINI_LOGO###
  • ###MAPKEY### Key to use for googlemaps
  • ###MAPICON###
  • ###ZOOM###
  • ###RAWLINK### the link to the company, not linked
  • ###S_STANDART### Markers prefixed with S are just styled different to be better displayed in single view
  • ###S_ADDRESS###
  • ###S_ZIP###
  • ###S_CITY###
  • ###S_EMAIL###
  • ###S_PHONE###
  • ###S_HOURSs###
  • ###S_URL###
  • ###S_LOGO###

Creating userdefined markers by typoscript

Defining additional markers is easy. They can be defined by typoscript in plugin.tt_news.lonewsaddress.marks. All fields belonging to tt_news weather, originally or added by extensions, can be used.

Example. Lets say you want a marker to display a link to the company, opening in a new window.

plugin.tt_news.lonewsaddress {
  marks {
    FULL_LINK = TEXT
    FULL_LINK {
       field = tx_companyextension_companyname
       typolink.parameter.field = tx_lonewsaddress_url
       typolink.target = _blank
     }
  }
}

Thereafter the marker ###FULL_LINK### can be used in the templates.

Updating

As from now on the plugin witch formerly created Goole Maps was removed. It was to buggy to maintain. Please use the maps provided by rggooglemap.

9