.. You may want to use the usual include line. Uncomment and adjust the path. .. include:: ../Includes.txt ============= wt\_directory ============= :Author: Kasper Skårhøj :Created: 2002-11-01T00:32:00 :Changed by: Alex Kellner :Changed: 2011-08-01T15:59:07.420000000 :Classification: tt_address list like sp_directory :Author: Alexander Kellner :Email: Alexander.Kellner@in2code.de :Info 3: :Info 4: .. _wt-directory: wt\_directory ============= Extension Key: **wt\_directory** Copyright 2005-2011 Alexander Kellner, 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 ----------------- **wt\_directory 1** **wt\_directory introduction 3** What does it do? 3 All features in a list 3 wt\_directory requires 3 **Screenshots 4** Frontend: Using wt\_directory to show addresses 4 Backend: Use flexform for configuration 7 Note: Need more screenshots 7 **How to use 8** Step by step: 8 wt\_directory test homepage: 8 **Flexform explanation 9** Main 9 List 10 Detail 11 Googlemap 11 Powermail 11 tt\_news 12 **Available Constants 13** **Available Setup 14** Typoscript settings (setup) 14 **FAQ 21** How can I use my own html code for listview, singleview, search or pagebrowser? 21 How can I change the output of any field in listview or singleview? 21 How to add a new marker to my HTML Template (list or detail)? 21 How to output new fields of tt\_address? 22 How can I add a new marker to show a text / How to change locallang output? 23 How can I add a new marker and use typoscript 23 I want to write addressgroups comma separated and no comma at the end!? 23 HTML header is shown in my vCard – why? 24 How can I crop the description text in the list view after X letters? 24 How can I change the pagebrowser output? 24 I want to use the category dropdown, but it's not shown – why? 24 Constant Editor could help you... 25 Get a relation between tt\_address and powermail 25 How to style the output of wt\_directory 25 Autocomplete for search fields don't work 25 What the hell is wt\_doorman? 25 **Todos 26** **Changelog 27** **Additional links 31** .. _wt-directory-introduction: wt\_directory introduction -------------------------- .. _What-does-it-do: What does it do? ^^^^^^^^^^^^^^^^ wt\_directory is THE possibility to show addresses from tt\_address. Different views (with HTML Templates) for list and single. Just add different fields in flexform to show – that's all. wt\_directory supports tt\_address\_groups. Different filter possibilities for wt\_directory: ABC list, Add some search fields, Category dropdown. vCard export of addresses and powermail link for sending a form to a tt\_address email address possible. Of course you can use typoscript for every view (possibility of lightboxes, case script, etc...) .. _All-features-in-a-list: All features in a list ^^^^^^^^^^^^^^^^^^^^^^ - Address list of tt\_address table like the old extension sp\_directory. - HTML Templates for all views. - Define tt\_address category, ABC list, category selector or your own search fields. - Connection to rggooglemap to show an address right now on a map. - Connection to powermail to send a form to chosen tt\_address user. - Edit fields via typoscript possible. - Easily adding some more markers for text or typoscript. - Vcard download in listview or detailview. - wt\_directory was developed to meet the demands on high security. .. _wt-directory-requires: wt\_directory requires ^^^^^^^^^^^^^^^^^^^^^^ - tt\_address - wt\_doorman (security class) .. _Screenshots: Screenshots ----------- .. _Frontend-Using-wt-directory-to-show-addresses: Frontend: Using wt\_directory to show addresses ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. _Listview-Example-from-conject-com: Listview - Example from conject.com """"""""""""""""""""""""""""""""""" |img-1| .. _Singleview-Example-from-conject-com: Singleview - Example from conject.com """"""""""""""""""""""""""""""""""""" |img-2| .. _Listview-Example-from-einpraegsam-net: Listview - Example from einpraegsam.net """"""""""""""""""""""""""""""""""""""" .. _img-3: |img-3| """"""" .. _Singleview-Example-from-einpraegsam-net: Singleview - Example from einpraegsam.net """"""""""""""""""""""""""""""""""""""""" |img-4| .. _Listview-Default-CSS: Listview – Default CSS """""""""""""""""""""" |img-5| .. _Backend-Use-flexform-for-configuration: Backend: Use flexform for configuration ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. _Main-part-for-backend-plugin: Main part for backend plugin """""""""""""""""""""""""""" |img-6| .. _List-part-for-backend-plugin: List part for backend plugin """""""""""""""""""""""""""" |img-7| .. _Note-Need-more-screenshots: Note: Need more screenshots ^^^^^^^^^^^^^^^^^^^^^^^^^^^ We need more screenshots! Do you need a backlink? So let's get together and write me! .. _How-to-use: How to use ---------- .. _Step-by-step: Step by step: ^^^^^^^^^^^^^ - Import tt\_address from online repository (TER) **(Don't use wt\_directory without tt\_address!)** - Import wt\_doorman from online repository (TER) - Import wt\_directory from TER - Add some tt\_address entries on any page (maybe sysfolder) - Enter a wt\_directory plugin to any existing page - Configure it via flexform - Some more configuration possibilities available via constants - If you want to include a default css, you can add the static template - If you want to use autocomplete for search fields, you can enter the static template .. _wt-directory-test-homepage: wt\_directory test homepage: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `http://www.einpraegsam.net/fachgebiete/typo3-extensions/wt- directory.html `_ .. _Flexform-explanation: Flexform explanation -------------------- .. _Main: Main ^^^^ |img-8| .. ### BEGIN~OF~TABLE ### .. _Show-only-this-addresses: **Show only this addresses** """""""""""""""""""""""""""" .. container:: table-row a **Show only this addresses** b Define an address pool (one or more addresses). This could be useful if you want to show only one address, etc... Note: If you choose a startingpoint and save, only the addresses of the startingpoint will be shown. Note2: Category usage is not available within an addresspool. Note3: ABC and Search filter can be used with this. .. _Category-usage: **Category usage** """""""""""""""""" .. container:: table-row a **Category usage** b Category mode: Show only selected category or show all tt\_address records from page .. _Categories: **Categories** """""""""""""" .. container:: table-row a **Categories** b Choose one or more categories to show (If you want to use category dropdown, choose some!) .. _Don-t-show-addresses-on-start: **Don't show addresses on start** """"""""""""""""""""""""""""""""" .. container:: table-row a **Don't show addresses on start** b Maybe you don't want to show addresses if no filter was chosen (category or ABC or searchfilter) – so you could speed up the site entry at the first time) .. _Startingpoint: **Startingpoint** """"""""""""""""" .. container:: table-row a **Startingpoint** b Choose page with tt\_address records (If empty, all addresses will be shown) .. _Recursive: **Recursive** """"""""""""" .. container:: table-row a **Recursive** b Take categories of startingpoint and maybe of some pages below the startingpoint(e.g. taking addresses from more sysfolders) .. ###### END~OF~TABLE ###### .. _List: List ^^^^ |img-7| .. ### BEGIN~OF~TABLE ### .. _Page-with-detail-view: **Page with detail view** """"""""""""""""""""""""" .. container:: table-row a **Page with detail view** b You can use this field if you want to use list- and detail view on different pages (Empty for same page) .. _Show-fields-in-frontend: **Show fields in frontend** """"""""""""""""""""""""""" .. container:: table-row a **Show fields in frontend** b Select some fields for list view (empty: will show all fields) (note: if you want to use your own marker in html file tmpl\_list.html so this settings don't matter) .. _ABC-list: **ABC list** """""""""""" .. container:: table-row a **ABC list** b Show abc list. Default: you can search for all names beginning with a letter. (Change the dropdown if you want to use the abc list with another field) (Don't show disables abc list) .. _Add-search-field-s: **Add search field(s)** """"""""""""""""""""""" .. container:: table-row a **Add search field(s)** b You can add some search fields if you want. If you use the option “Search all”, you can define a search field, which search in multiple columns at a time. These columns can be defined via typoscript (searchAllFields = company, name, city) .. _Add-dropdown-for-category-selection: **Add dropdown for category selection** """"""""""""""""""""""""""""""""""""""" .. container:: table-row a **Add dropdown for category selection** b If you have chosen more than only one category in the main area, you can add a dropdown for a category filter in frontend .. ###### END~OF~TABLE ###### .. _Detail: Detail ^^^^^^ |img-9| .. ### BEGIN~OF~TABLE ### .. _Page-with-list-view: **Page with list view** """"""""""""""""""""""" .. container:: table-row a **Page with list view** b You can use this field if you want to use list- and detail view on different pages (Empty for same page) .. _Show-fields-in-frontend: **Show fields in frontend** """"""""""""""""""""""""""" .. container:: table-row a **Show fields in frontend** b Select some fields for detail view (empty: will show all fields) (note: if you want to use your own marker in html file tmpl\_detail.html so this settings don't matter) .. ###### END~OF~TABLE ###### .. _Googlemap: Googlemap ^^^^^^^^^ |img-10| .. ### BEGIN~OF~TABLE ### .. _Status: **Status** """""""""" .. container:: table-row a **Status** b Only checks if rggooglemap is installed .. _Enable-googlemap-links: **Enable googlemap links** """""""""""""""""""""""""" .. container:: table-row a **Enable googlemap links** b Enable links for googlemap (rggooglemap) .. _Page-with-Googlemap: **Page with Googlemap** """"""""""""""""""""""" .. container:: table-row a **Page with Googlemap** b Choose page where googlemap plugin is in (empty for the same page) .. ###### END~OF~TABLE ###### .. _Powermail: Powermail ^^^^^^^^^ |img-11| .. ### BEGIN~OF~TABLE ### .. _Link-to-powermail-page: **Link to powermail page** """""""""""""""""""""""""" .. container:: table-row a **Link to powermail page** b If you want to offer a link to a powermail form, you can enter a page where the powermail form is installed (powermail will send form values to the chosen email from current tt\_address) If this field is empty, no link to Powermail page will be shown .. ###### END~OF~TABLE ###### .. _tt-news: tt\_news ^^^^^^^^ |img-12| .. ### BEGIN~OF~TABLE ### .. _Show-news-contact: **Show news contact** """"""""""""""""""""" .. container:: table-row a **Show news contact** b If you want to show a contact person in tt\_news detail view, you can check this checkbox. .. ###### END~OF~TABLE ###### |img-13| There is a new select box in the tt\_news view. Here you can select any tt\_address dataset. You have to add a wt\_directory Frontend Plugin on the page where the tt\_news detail view is placed. You can select one address in the wt\_directory address pool (as default address). But when there is a relation in the current tt\_news, you can show it: |img-14| .. _Available-Constants: Available Constants ------------------- .. ### BEGIN~OF~TABLE ### .. _Constants: **Constants** ^^^^^^^^^^^^^ .. container:: table-row a **Constants** b **Explanation** c **Default value** .. _template-list: template.list ^^^^^^^^^^^^^ .. container:: table-row a template.list b Template File list: HTML-template file for list view (see EXT:wt\_directory/templates/tmpl\_list.html for an example) c EXT:wt\_directory/templates/tmpl\_list.html .. _template-detail: template.detail ^^^^^^^^^^^^^^^ .. container:: table-row a template.detail b Template File detail: HTML-template file for detail view (see EXT:wt\_directory/templates/tmpl\_detail.html for an example) c EXT:wt\_directory/templates/tmpl\_detail.html .. _template-ALLmarker: template.ALLmarker ^^^^^^^^^^^^^^^^^^ .. container:: table-row a template.ALLmarker b Template Marker ALL: HTML-template file for an ALL marker (all markers in one marker) (see EXT:wt\_directory/templates/tmpl\_detail.html for an example) c EXT:wt\_directory/templates/tmpl\_markerall.html .. _template-pagebrowser: template.pagebrowser ^^^^^^^^^^^^^^^^^^^^ .. container:: table-row a template.pagebrowser b Template for Pagebrowser: HTML-template file for pagebrowser in listview (see EXT:wt\_directory/templates/tmpl\_pagebrowser.html for an example) c EXT:wt\_directory/templates/tmpl\_pagebrowser.html .. _template-search: template.search ^^^^^^^^^^^^^^^ .. container:: table-row a template.search b Template for Search/Filter: HTML-template file for filter and searchboxes above the list (see EXT:wt\_directory/templates/tmpl\_search.html for an example) c EXT:wt\_directory/templates/tmpl\_search.html .. _template-vcard: template.vcard ^^^^^^^^^^^^^^ .. container:: table-row a template.vcard b Template for vcard: HTML-template file for vcard export (see EXT:wt\_directory/templates/tmpl\_vcard.html for an example) c EXT:wt\_directory/templates/tmpl\_vcard.html .. _path-ttaddress-pictures: path.ttaddress\_pictures ^^^^^^^^^^^^^^^^^^^^^^^^ .. container:: table-row a path.ttaddress\_pictures b Relatvie path for tt\_address pictures c uploads/pics/ .. _enable-hideDescription: enable.hideDescription ^^^^^^^^^^^^^^^^^^^^^^ .. container:: table-row a enable.hideDescription b Hide description if empty value: Description will not shown if the value is empty c 1 .. _enable-googlemapOnDetail: enable.googlemapOnDetail ^^^^^^^^^^^^^^^^^^^^^^^^ .. container:: table-row a enable.googlemapOnDetail b Show on map on detailpage: GOOGLEMAP - If a user changes from list to detailview the right marker is shown in the googlemap (if rggooglemap is included on detailpage) c 0 .. _enable-vCardForList: enable.vCardForList ^^^^^^^^^^^^^^^^^^^ .. container:: table-row a enable.vCardForList b vCard export in listview: Enables vCard export possibility in list view c 0 .. _enable-vCardForDetail: enable.vCardForDetail ^^^^^^^^^^^^^^^^^^^^^ .. container:: table-row a enable.vCardForDetail b vCard export in detailview: Enables vCard export possibility in detail view c 1 .. _enable-powermailForList: enable.powermailForList ^^^^^^^^^^^^^^^^^^^^^^^ .. container:: table-row a enable.powermailForList b powermail link in listview: Enables powermail link to a page with powermail to change the receiver to the current tt\_address email address - in list view c 0 .. _enable-powermailForDetail: enable.powermailForDetail ^^^^^^^^^^^^^^^^^^^^^^^^^ .. container:: table-row a enable.powermailForDetail b powermail link in detailview: Enables powermail link to a page with powermail to change the receiver to the current tt\_address email address - in detail view c 1 .. _morelink-detail-condition: morelink\_detail.condition ^^^^^^^^^^^^^^^^^^^^^^^^^^ .. container:: table-row a morelink\_detail.condition b Condition for more link: Show more link in list view only if one field is filled with content (e.g. mobile, fax) c .. _label-vCard: label.vCard ^^^^^^^^^^^ .. container:: table-row a label.vCard b vCard link label: Label for vCard links c vCard icon .. _label-powermail: label.powermail ^^^^^^^^^^^^^^^ .. container:: table-row a label.powermail b powermail link label: Label for powermail links c powermail icon .. _list-perPage: list.perPage ^^^^^^^^^^^^ .. container:: table-row a list.perPage b Show results per page: Show X results per page in list view c 10 .. _list-orderby: list.orderby ^^^^^^^^^^^^ .. container:: table-row a list.orderby b List view - order by: Define order by for the listing of the addresses(like last\_name asc) c .. _detail-title: detail.title ^^^^^^^^^^^^ .. container:: table-row a detail.title b Detailpage title: Define an individual page title (like MY HOMEPAGE ###WTDIRECTORY\_TTADDRESS\_NAME### ###WTDIRECTORY\_TTADDRESS\_EMAIL###) c .. _detail-emailredirect: detail.emailredirect ^^^^^^^^^^^^^^^^^^^^ .. container:: table-row a detail.emailredirect b Email redirect on detailpage: If this flag is set, outlook (or any other email client programm) will be opened with the email of current address c 0 .. _wrap-addressgroup: wrap.addressgroup ^^^^^^^^^^^^^^^^^ .. container:: table-row a wrap.addressgroup b Wrap for addressgroup: If you want to show addressgroups, you can wrap each group (if you have more than only 1 per address) (e.g. \|
) c \|
.. _filter-cat-disable: filter.cat.disable ^^^^^^^^^^^^^^^^^^ .. container:: table-row a filter.cat.disable b Disable categories in search: Disable some categories in category choose (like 45,23,12) c .. _filter-cat-showAllInDropdown: filter.cat.showAllInDropdown ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. container:: table-row a filter.cat.showAllInDropdown b Show all Categories: Show all categories in dropdown in list view. Categories may not be selected in flexform (like 0 or 1) c 0 .. _filter-list-clearOldFilter: filter.list.clearOldFilter ^^^^^^^^^^^^^^^^^^^^^^^^^^ .. container:: table-row a filter.list.clearOldFilter b Clear search filter in singleview: If there is a filter in use and than a click to detail and back again, filter is cleared c 0 .. _filter-cat-clearOldFilter: filter.cat.clearOldFilter ^^^^^^^^^^^^^^^^^^^^^^^^^ .. container:: table-row a filter.cat.clearOldFilter b Clear search filter on cat-choose: If there is already set a search filter and you change the categories, search filter will be cleaned c 0 .. _vCard-utf8: vCard.utf8 ^^^^^^^^^^ .. container:: table-row a vCard.utf8 b vCard UTF8 en- or decode: en- or decode for the vCard output c .. ###### END~OF~TABLE ###### Constants prefix is always plugin.wtdirectory .. _Available-Setup: Available Setup --------------- .. _Typoscript-settings-setup: Typoscript settings (setup) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ \# WT\_DIRECTORY PLUGIN # includeLibs.user\_wtdirectory\_pagebrowser = EXT:wt\_directory/lib/class.user\_wtdirectory\_pagebrowser.php \# main settings plugin.tx\_wtdirectory\_pi1 { \# Constants template.list = {$plugin.wtdirectory.template.list} template.detail = {$plugin.wtdirectory.template.detail} template.ALLmarker = {$plugin.wtdirectory.template.ALLmarker} template.pagebrowser = {$plugin.wtdirectory.template.pagebrowser} template.search = {$plugin.wtdirectory.template.search} template.vcard = {$plugin.wtdirectory.template.vcard} path.ttaddress\_pictures = {$plugin.wtdirectory.path.ttaddress\_pictures} enable.googlemapOnDetail = {$plugin.wtdirectory.enable.googlemapOnDetail} enable.hideDescription = {$plugin.wtdirectory.enable.hideDescription} enable.vCardForList = {$plugin.wtdirectory.enable.vCardForList} enable.vCardForDetail = {$plugin.wtdirectory.enable.vCardForDetail} enable.powermailForList = {$plugin.wtdirectory.enable.powermailForList} enable.powermailForDetail = {$plugin.wtdirectory.enable.powermailForDetail} morelink\_detail.condition = {$plugin.wtdirectory.morelink\_detail.condition} label.vCard = {$plugin.wtdirectory.label.vCard} label.powermail = {$plugin.wtdirectory.label.powermail} list.perPage = {$plugin.wtdirectory.list.perPage} list.orderby = {$plugin.wtdirectory.list.orderby} detail.title = {$plugin.wtdirectory.detail.title} detail.emailredirect = {$plugin.wtdirectory.detail.emailredirect} wrap.addressgroup = {$plugin.wtdirectory.wrap.addressgroup} filter.cat.disable = {$plugin.wtdirectory.filter.cat.disable} filter.cat.showAllInDropdown = {$plugin.wtdirectory.filter.cat.showAllInDropdown} filter.list.clearOldFilter = {$plugin.wtdirectory.filter.list.clearOldFilter} filter.cat.clearOldFilter = {$plugin.wtdirectory.filter.cat.clearOldFilter} vCard.utf8 = {$plugin.wtdirectory.vCard.utf8} \# Detail view detail { field.tstamp = TEXT field.tstamp.field = tstamp field.tstamp.strftime = %d.%m.%Y field.name = TEXT field.name.field = name field.name.wrap =

\|

field.gender = CASE field.gender.key.field = gender field.gender.default = IMAGE field.gender.default.file = EXT:wt\_directory/files/icon\_female.gif field.gender.m = IMAGE field.gender.m.file = EXT:wt\_directory/files/icon\_male.gif field.first\_name = TEXT field.first\_name.field = first\_name field.middle\_name = TEXT field.middle\_name.field = middle\_name field.last\_name = TEXT field.last\_name.field = last\_name field.birthday = TEXT field.birthday.field = birthday field.birthday.strftime = %d.%m.%Y field.title = TEXT field.title.field = title field.email = COA field.email.if.isTrue.field = email field.email.10 = IMAGE field.email.10.file = EXT:wt\_directory/files/icon\_mail.gif field.email.10.params = style="margin-right: 6px;" class="wt\_directory\_icon\_mail" field.email.20 = TEXT field.email.20.field = email field.email.20.typolink.parameter.field = email field.phone = COA field.phone.if.isTrue.field = phone field.phone.10 = IMAGE field.phone.10.file = EXT:wt\_directory/files/icon\_phone.gif field.phone.10.params = style="margin-right: 6px;" class="wt\_directory\_icon\_phone" field.phone.20 = TEXT field.phone.20.field = phone field.mobile = COA field.mobile.if.isTrue.field = mobile field.mobile.10 = IMAGE field.mobile.10.file = EXT:wt\_directory/files/icon\_cell.gif field.mobile.10.params = style="margin-right: 6px;" class="wt\_directory\_icon\_cell" field.mobile.20 = TEXT field.mobile.20.field = mobile field.www = COA field.www.if.isTrue.field = www field.www.10 = IMAGE field.www.10.file = EXT:wt\_directory/files/icon\_web.gif field.www.10.params = style="margin-right: 6px;" class="wt\_directory\_icon\_www" field.www.20 = TEXT field.www.20.field = www field.www.20.typolink.parameter.field = www field.www.20.typolink.ATagParams = target="\_blank" field.address = TEXT field.address.field = address field.address.br = 1 field.building = TEXT field.building.field = building field.room = TEXT field.room.field = room field.company = TEXT field.company.field = company field.city = TEXT field.city.field = city field.zip = TEXT field.zip.field = zip field.region = TEXT field.region.field = region field.country = TEXT field.country.field = country field.image = TEXT field.image.field = image field.image.split { token = , cObjNum = 1 1 { 10 = IMAGE 10.params = class="wt\_directory\_image" 10.file.import.current = 1 10.file.import.dataWrap = {$plugin.wtdirectory.path.ttaddress\_pictures} 10.file.width = 120 10.imageLinkWrap = 1 10.imageLinkWrap.enable = 1 10.imageLinkWrap { bodyTag = wrap = \| JSwindow = 1 JSwindow.newWindow = 1 } } } field.fax = COA field.fax.if.isTrue.field = fax field.fax.10 = IMAGE field.fax.10.file = EXT:wt\_directory/files/icon\_fax.gif field.fax.10.params = style="margin-right: 6px;" class="wt\_directory\_icon\_fax" field.fax.20 = TEXT field.fax.20.field = fax field.description = TEXT field.description.field = description field.description.br = 1 field.addressgroup = TEXT field.addressgroup.field = addressgroup field.anyfield = YOURTYPOSCRIPT } \# List view list { field.tstamp = TEXT field.tstamp.field = tstamp field.tstamp.strftime = %d.%m.%Y field.name = TEXT field.name.field = name field.name.wrap =

\|

field.gender = CASE field.gender.key.field = gender field.gender.default = IMAGE field.gender.default.file = EXT:wt\_directory/files/icon\_female.gif field.gender.m = IMAGE field.gender.m.file = EXT:wt\_directory/files/icon\_male.gif field.first\_name = TEXT field.first\_name.field = first\_name field.middle\_name = TEXT field.middle\_name.field = middle\_name field.last\_name = TEXT field.last\_name.field = last\_name field.birthday = TEXT field.birthday.field = birthday field.birthday.strftime = %d.%m.%Y field.title = TEXT field.title.field = title field.email = COA field.email.if.isTrue.field = email field.email.10 = IMAGE field.email.10.file = EXT:wt\_directory/files/icon\_mail.gif field.email.10.params = style="margin-right: 6px;" class="wt\_directory\_icon\_mail" field.email.20 = TEXT field.email.20.field = email field.email.20.typolink.parameter.field = email field.phone = COA field.phone.if.isTrue.field = phone field.phone.10 = IMAGE field.phone.10.file = EXT:wt\_directory/files/icon\_phone.gif field.phone.10.params = style="margin-right: 6px;" class="wt\_directory\_icon\_phone" field.phone.20 = TEXT field.phone.20.field = phone field.mobile = COA field.mobile.if.isTrue.field = mobile field.mobile.10 = IMAGE field.mobile.10.file = EXT:wt\_directory/files/icon\_cell.gif field.mobile.10.params = style="margin-right: 6px;" class="wt\_directory\_icon\_cell" field.mobile.20 = TEXT field.mobile.20.field = mobile field.www = COA field.www.if.isTrue.field = www field.www.10 = IMAGE field.www.10.file = EXT:wt\_directory/files/icon\_web.gif field.www.10.params = style="margin-right: 6px;" class="wt\_directory\_icon\_www" field.www.20 = TEXT field.www.20.field = www field.www.20.typolink.parameter.field = www field.www.20.typolink.ATagParams = target="\_blank" field.address = TEXT field.address.field = address field.address.br = 1 field.building = TEXT field.building.field = building field.room = TEXT field.room.field = room field.company = TEXT field.company.field = company field.city = TEXT field.city.field = city field.zip = TEXT field.zip.field = zip field.region = TEXT field.region.field = region field.country = TEXT field.country.field = country field.image = IMAGE field.image.wrap = \|  field.image.file { import.dataWrap = {$plugin.wtdirectory.path.ttaddress\_pictures} import.field = image import.listNum = 0 width = 120 } field.fax = COA field.fax.if.isTrue.field = fax field.fax.10 = IMAGE field.fax.10.file = EXT:wt\_directory/files/icon\_fax.gif field.fax.10.params = style="margin-right: 6px;" class="wt\_directory\_icon\_fax" field.fax.20 = TEXT field.fax.20.field = fax field.description = TEXT field.description.field = description field.description.br = 1 field.addressgroup = TEXT field.addressgroup.field = addressgroup field.anyfield = YOURTYPOSCRIPT } searchAllFields = company, name, city \# Pagebrowser pagebrowser = HMENU pagebrowser { special = userfunction special.userFunc = user\_wtdirectory\_pagebrowser->user\_pagebrowser 1 = TMENU 1 { wrap = NO.allWrap =
  • \|
  • ACT = 1 ACT.allWrap =
  • \|
  • ACT.ATagParams = class="act" } } \# vCard settings vCard { ### MAIN ### \# Display name display\_name = COA display\_name { 10 = TEXT 10.field = first\_name 10.noTrimWrap = \|\| \| 20 = TEXT 20.field = last\_name } \# Firstname first\_name = TEXT first\_name.field = first\_name \# Lastname last\_name = TEXT last\_name.field = last\_name \# Middle name middle\_name = TEXT middle\_name.field = middle\_name \# Title title = TEXT title.field = title \# Name prefix name\_prefix = TEXT name\_prefix.field = title \# Name suffix name\_suffix = TEXT name\_suffix.value = \# Email 1 email1 = TEXT email1.field = email \# Email 2 email2 = TEXT email2.value = \# Company company = TEXT company.field = company \# Room company = TEXT company.room = room ### WORK ### \# Phone work\_phone = TEXT work\_phone.field = phone \# Post Office Box work\_po\_box = TEXT work\_po\_box.value = \# Extended Address work\_extended\_address = TEXT work\_extended\_address.field = address \# Address work\_address = TEXT work\_address.field = address \# City work\_city = TEXT work\_city.field = city \# State work\_state = TEXT work\_state.field = region \# ZIP work\_zip = TEXT work\_zip.field = zip \# Country work\_country = TEXT work\_country.field = country ### PRIVATE ### \# Phone home\_phone = TEXT home\_phone.field = phone \# Post Office Box home\_po\_box = TEXT home\_po\_box.value = \# Extended Address home\_extended\_address = TEXT home\_extended\_address.field = address \# Address home\_address = TEXT home\_address.field = address \# City home\_city = TEXT home\_city.field = city \# State home\_state = TEXT home\_state.field = region \# ZIP home\_zip = TEXT home\_zip.field = zip \# Country home\_country = TEXT home\_country.field = country ### OTHER ### \# Cellphone cellphone = TEXT cellphone.field = mobile \# Fax fax = TEXT fax.field = fax \# Pager page = TEXT page.value = \# URL www = TEXT www.value = Homepage www.typolink { parameter.data = field : www returnLast = url } \# Createdate of vCard crdate = TEXT crdate.data = date:U crdate.strftime = %Y-%m-%d %H:%M:%S \# Birthday birthday = TEXT birthday.field = birthday birthday.strftime = %Y%m%d \# Role role = TEXT role.value = \# Note note = TEXT note.value = created by wt\_directory \# Timezone timezone = TEXT timezone.value = +0100 \# Filename for vCard filename = COA filename.wrap = \|.vcf filename { 10 = TEXT 10.field = first\_name 10.noTrimWrap = \|\|\_\| 20 = TEXT 20.field = last\_name } } } \# TypeNum 3134 for vCard Download wtdirectory\_vCard = PAGE wtdirectory\_vCard { typeNum = 3134 10 < plugin.tx\_wtdirectory\_pi1 config { disableAllHeaderCode = 1 disablePrefixComment = 1 xhtml\_cleaning = 0 admPanel = 0 } } .. _FAQ: FAQ --- .. _How-can-I-use-my-own-html-code-for-listview-singleview-search-or-pagebrowser: How can I use my own html code for listview, singleview, search or pagebrowser? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Have a look into your constant editor to use your own html templates .. _How-can-I-change-the-output-of-any-field-in-listview-or-singleview: How can I change the output of any field in listview or singleview? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Every field could be changed via typoscript setup (see ts above image or name) .. _How-to-add-a-new-marker-to-my-HTML-Template-list-or-detail: How to add a new marker to my HTML Template (list or detail)? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Have a look into the TypoScript Template. You can add two lines and have a new marker... |img-15| .. _How-to-output-new-fields-of-tt-address: How to output new fields of tt\_address? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - See this HOWTO on `http://www.typo3.net/forum/list/list\_post//82282 `_ - Add some new fields to tt\_address (e.g. via kickstarter) - New fields (example from rggooglemap) are automaticly shown in the backend: - |img-16| Enable field via TypoScript: :: plugin.tx_wtdirectory_pi1 { detail { field.tx_rggooglemap_lat = TEXT field.tx_rggooglemap_lat.field = tx_rggooglemap_lat field.tx_rggooglemap_lat.wrap = | } } Add a new marker to your HTML Template: :: ###WTDIRECTORY_TX_RGGOOGLEMAP_LNG###
    ###WTDIRECTORY_SPECIAL_ALL###