.. You may want to use the usual include line. Uncomment and adjust the path. .. include:: ../Includes.txt ============= wt\_carmarket ============= :Author: Kasper Skårhøj :Created: 2002-11-01T00:32:00 :Changed: 2009-10-28T19:17:49 :Classification: carmarket extension :Author: Alex Kellner :Email: Alexander.Kellner@einpraegsam.net :Info 3: :Info 4: .. _wt-carmarket: wt\_carmarket ============= Extension Key: **wt\_carmarket** Copyright 2005-2008, Alex 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\_carmarket 1** **wt\_carmarket introduction 2** What does it do? 2 What does this extension need to run? 2 Screenshots 3 Acknowledgments 5 **How to use 6** Step by step: 6 **Page record explanation overview 7** Screenshot 7 Explanation 8 Note 8 **Page record explanation objects 9** Screenshot 9 Explanation 10 **Content plugin 11** Screenshot List 11 Screenshot Detail 11 Explanation 11 **Typoscript 12** setup 12 setup: .field possibilities for typoscript 21 constants 22 prefill powermail fields 23 **Note 24** **FAQ 25** How to prefill a powermail form with values of any object 25 I want to change some label text 25 I want to enter a dynamic locallang marker in any html template 25 I want to enter a dynamic typoscript marker in any html template 25 I want to remove/rename some fields in the backend 25 Field1 (or FieldN) is not shown – what is wrong? 25 I just need two (or something like that) categories 25 Changing a category into another category 25 **Todos 26** **Changelog 27** **Additional links 28** .. _wt-carmarket-introduction: wt\_carmarket introduction -------------------------- .. _What-does-it-do: What does it do? ^^^^^^^^^^^^^^^^ Database for cars and trucks with list and singleview. Possibility to add 8 different categories as you want. Localization for all database tables enabled (comes up with english, german and russia). Of course fully configurable via typoscript! Filter with dropdown in frontend Possibility to fill powermail form in detail view with values from carmarket database (request form) Of course there are a lot of html templates to manipulate as you want and of course you can use dynamic typoscript and dynamic locallang markers in any html template (as used in powermail and wt\_directory) .. _What-does-this-extension-need-to-run: What does this extension need to run? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ wt\_doorman (for security reasons) .. _Screenshots: Screenshots ^^^^^^^^^^^ .. _Listview-with-filter-possibilities: Listview with filter possibilities """""""""""""""""""""""""""""""""" |img-1| .. _Detailview-with-form-prefill-possibility: Detailview with form prefill possibility """""""""""""""""""""""""""""""""""""""" |img-2| .. _Acknowledgments: Acknowledgments ^^^^^^^^^^^^^^^ Creation of this extension was powered by AnD Institute ( `http://www.and.at/ `_ ) .. _How-to-use: How to use ---------- .. _Step-by-step: Step by step: ^^^^^^^^^^^^^ - Import and install wt\_doorman from TER (secuirty class) - Import and install wt\_carmarket from TER - Create a sysfolder and add some different categories and objects to this(Don't forget to set **General Record Storage page** to the same page!!!) - Create a normal page and enter a wt\_carmarket plugin to this - Set the startingpoint - Optional: You can enter single- and listview on different pages - Optional: You can enter a powermail form on the single page and fill some fields (maybe hidden) with values from carmarket database .. _Page-record-explanation-overview: Page record explanation overview -------------------------------- .. _Screenshot: Screenshot ^^^^^^^^^^ |img-3| .. _Explanation: Explanation ^^^^^^^^^^^ .. _Object: Object """""" Main table for objects (enter a description, pictures and set relation to the categories) .. _Category: Category """""""" Define some definitions for your cars or trucks (optional) .. _Brand: Brand """"" Define some car brands (optional) .. _Brand: Brand """"" Define some pollutant categories (optional) .. _Driverscab: Driverscab """""""""" Define some drivers cab categories (optional) .. _Gear: Gear """" Define some gear categories (optional) .. _Axis: Axis """" Define some axis categories (optional) .. _Weight: Weight """""" Define some weight categories (optional) .. _Note: Note ^^^^ You can use your own categories (you don't have to use weight – just use another category with this) .. _Page-record-explanation-objects: Page record explanation objects ------------------------------- .. _Screenshot: Screenshot ^^^^^^^^^^ |img-4| .. _Explanation: Explanation ^^^^^^^^^^^ - Language: Set localization for this object - Hide: Hide this object - Start and Stop: Set start and stop date for this object - Intern number: Set any string for your intern process - Registration Date: Object registration date - Title: Define a title - Power (PS): Horse power - Power (KW): Kilowatt power - Year of construction: Object construction year - Kilometric Performance: Define driven kilomters - Price: Price of object - Air condition: Object has air condition - Description: Object description - Pictures: Upload some object pictures - Wheelbase: Define wheelbase - Location: Define location of object - Field1 – Field10: Some fields in addition – maybe needed for some extra information - Category: Define a category - Brand: Define a category - Pollutant Category: Define a category - Drivers Cab: Define a category - Gear: Define a category - Axis: Define a category - Weight: Define a category .. _Content-plugin: Content plugin -------------- .. _Screenshot-List: Screenshot List ^^^^^^^^^^^^^^^ |img-5| .. _Screenshot-Detail: Screenshot Detail ^^^^^^^^^^^^^^^^^ |img-6| .. _Explanation: Explanation ^^^^^^^^^^^ - Page with listview: Define where the plugin for the listview is inserted (empty for same page) - Startingpoint: Define where the records are listed - Page with detailview: Define where the plugin for the detailview is inserterd (empty for same page) .. _Typoscript: Typoscript ---------- .. _setup: setup ^^^^^ :: # WT_CARMARKET PLUGIN # includeLibs.user_wtcarmarket_pagebrowser = EXT:wt_carmarket/lib/user_wtcarmarket_pagebrowser.php # main settings plugin.tx_wtcarmarket_pi1 { # Constants template.list = {$plugin.wtcarmarket.template.list} template.detail = {$plugin.wtcarmarket.template.detail} template.pagebrowser = {$plugin.wtcarmarket.template.pagebrowser} template.catchoose = {$plugin.wtcarmarket.template.catchoose} list.orderby = {$plugin.wtcarmarket.list.orderby} list.perPage = {$plugin.wtcarmarket.list.perPage} path.pictures = {$plugin.wtcarmarket.path.pictures} yearchoose.startyear = {$plugin.wtcarmarket.yearchoose.startyear} filter.category = {$plugin.wtcarmarket.filter.category} filter.brand = {$plugin.wtcarmarket.filter.brand} filter.pollutant = {$plugin.wtcarmarket.filter.pollutant} filter.driverscab = {$plugin.wtcarmarket.filter.driverscab} filter.gear = {$plugin.wtcarmarket.filter.gear} filter.axis = {$plugin.wtcarmarket.filter.axis} filter.weight = {$plugin.wtcarmarket.filter.weight} filter.year = {$plugin.wtcarmarket.filter.year} filter.cat1 = {$plugin.wtcarmarket.filter.cat1} # Detail view detail { field.number = COA field.number { 10 = TEXT 10.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_number 10.if.isTrue.field = number 10.wrap =
|
20 = TEXT 20.field = number 20.if.isTrue.field = number 20.wrap =
|
30.if.isFalse.field = number 30 = TEXT 30.value = } field.date_reg = COA field.date_reg { 10 = TEXT 10.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_date_reg 10.if.isTrue.field = date_reg 10.wrap =
|
20 = CASE 20.key.field = date_reg 20.default = TEXT 20.default.field = date_reg 20.default.strftime = %d.%m.%Y 20.default.wrap =
|
20.0 = TEXT 20.0.value = } field.title = COA field.title { 10 = TEXT 10.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_title 10.if.isTrue.field = title 10.wrap =
|
20 = TEXT 20.field = title 20.if.isTrue.field = title 20.wrap =
|
30.if.isFalse.field = title 30 = TEXT 30.value = } field.power_ps = COA field.power_ps { 10 = TEXT 10.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_power_ps 10.if.isTrue.field = power_ps 10.wrap =
|
20 = COA 20 { 10 = TEXT 10.field = power_ps 10.wrap = |/ 20 = TEXT 20.field = power_kw } 20.if.isTrue.field = power_ps 20.wrap =
|
30.if.isFalse.field = power_ps 30 = TEXT 30.value = } field.date_con = COA field.date_con { 10 = TEXT 10.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_date_con 10.if.isTrue.field = date_con 10.wrap =
|
20 = CASE 20.key.field = date_con 20.default = TEXT 20.default.field = date_con 20.default.strftime = %d.%m.%Y 20.default.wrap =
|
20.0 = TEXT 20.0.value = } field.km = COA field.km { 10 = TEXT 10.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_km 10.if.isTrue.field = km 10.wrap =
|
20 = TEXT 20.field = km 20.if.isTrue.field = km 20.wrap =
| km
30.if.isFalse.field = km 30 = TEXT 30.value = } field.price = COA field.price { 10 = TEXT 10.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_price 10.wrap =
|
20 = TEXT 20.field = price 20.if.isTrue.field = price 20.wrap =
| €
30 = TEXT 30.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_pricerequest 30.if.isFalse.field = price 30.wrap =
|
} field.aircondition = COA field.aircondition { 10 = TEXT 10.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_aircondition 10.wrap =
|
20 = CASE 20.key.field = aircondition 20.default = IMAGE 20.default.file = EXT:wt_carmarket/files/no.gif 20.default.wrap =
|
20.1 = IMAGE 20.1.file = EXT:wt_carmarket/files/ok.gif 20.1.wrap =
|
} field.description = COA field.description { 10 = TEXT 10.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_description 10.if.isTrue.field = description 10.wrap =
|
20 = TEXT 20.field = description 20.if.isTrue.field = description 20.wrap =
|
30.if.isFalse.field = description 30 = TEXT 30.value = } field.pictures = COA field.pictures { 10 = TEXT 10.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_pictures 10.if.isTrue.field = pictures 10.wrap =
|
20 = TEXT 20 { field = pictures split { token = , cObjNum = 1 1 { 10 = IMAGE 10.file.import.current = 1 10.file.import.dataWrap = {$plugin.wtcarmarket.path.pictures} 10.file.width = 120 10.wrap = |  10.imageLinkWrap = 1 10.imageLinkWrap.enable = 1 10.imageLinkWrap { bodyTag = wrap = | JSwindow = 1 JSwindow.newWindow = 1 } } } } 20.if.isTrue.field = pictures 20.wrap =
|
30.if.isFalse.field = pictures 30 = TEXT 30.value = } field.wheelbase = COA field.wheelbase { 10 = TEXT 10.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_wheelbase 10.if.isTrue.field = wheelbase 10.wrap =
|
20 = TEXT 20.field = wheelbase 20.if.isTrue.field = wheelbase 20.wrap =
| cm
30.if.isFalse.field = wheelbase 30 = TEXT 30.value = } field.location = COA field.location { 10 = TEXT 10.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_location 10.if.isTrue.field = location 10.wrap =
|
20 = TEXT 20.field = location 20.if.isTrue.field = location 20.wrap =
|
30.if.isFalse.field = location 30 = TEXT 30.value = } field.numberofobjects = COA field.numberofobjects { 10 = TEXT 10.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_numberofobjects 10.if.isTrue.field = numberofobjects 10.wrap =
|
20 = TEXT 20.field = numberofobjects 20.if.isTrue.field = numberofobjects 20.wrap =
|
30.if.isFalse.field = numberofobjects 30 = TEXT 30.value = } field.cat_category_title = COA field.cat_category_title { 10 = TEXT 10.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_cat_category 10.if.isTrue.field = cat_category_title 10.wrap =
|
20 = TEXT 20.field = cat_category_title 20.if.isTrue.field = cat_category_title 20.wrap =
|
30.if.isFalse.field = cat_category_title 30 = TEXT 30.value = } field.cat_brand_title = COA field.cat_brand_title { 10 = TEXT 10.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_cat_brand 10.if.isTrue.field = cat_brand_title 10.wrap =
|
20 = TEXT 20.field = cat_brand_title 20.if.isTrue.field = cat_brand_title 20.wrap =
|
30.if.isFalse.field = cat_brand_title 30 = TEXT 30.value = } field.cat_pollutant_title = COA field.cat_pollutant_title { 10 = TEXT 10.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_cat_pollutant 10.if.isTrue.field = cat_pollutant_title 10.wrap =
|
20 = TEXT 20.field = cat_pollutant_title 20.if.isTrue.field = cat_pollutant_title 20.wrap =
|
30.if.isFalse.field = cat_pollutant_title 30 = TEXT 30.value = } field.cat_driverscab_title = COA field.cat_driverscab_title { 10 = TEXT 10.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_cat_driverscab 10.if.isTrue.field = cat_driverscab_title 10.wrap =
|
20 = TEXT 20.field = cat_driverscab_title 20.if.isTrue.field = cat_driverscab_title 20.wrap =
|
30.if.isFalse.field = cat_driverscab_title 30 = TEXT 30.value = } field.cat_gear_title = COA field.cat_gear_title { 10 = TEXT 10.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_cat_gear 10.if.isTrue.field = cat_gear_title 10.wrap =
|
20 = TEXT 20.field = cat_gear_title 20.if.isTrue.field = cat_gear_title 20.wrap =
|
30.if.isFalse.field = cat_gear_title 30 = TEXT 30.value = } field.cat_axis_title = COA field.cat_axis_title { 10 = TEXT 10.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_cat_axis 10.if.isTrue.field = cat_axis_title 10.wrap =
|
20 = TEXT 20.field = cat_axis_title 20.if.isTrue.field = cat_axis_title 20.wrap =
|
30.if.isFalse.field = cat_axis_title 30 = TEXT 30.value = } field.cat_weight_title = COA field.cat_weight_title { 10 = TEXT 10.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_cat_weight 10.if.isTrue.field = cat_weight_title 10.wrap =
|
20 = TEXT 20.field = cat_weight_title 20.if.isTrue.field = cat_weight_title 20.wrap =
|
30.if.isFalse.field = cat_weight_title 30 = TEXT 30.value = } field.cat_cat1_title = COA field.cat_cat1_title { 10 = TEXT 10.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_cat_cat1 10.if.isTrue.field = cat_cat1_title 10.wrap =
|
20 = TEXT 20.field = cat_cat1_title 20.if.isTrue.field = cat_cat1_title 20.wrap =
|
30.if.isFalse.field = cat_cat1_title 30 = TEXT 30.value = } } # List view list { field.number = COA field.number { 10 = TEXT 10.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_number 10.if.isTrue.field = number 10.wrap =
|
20 = TEXT 20.field = number 20.if.isTrue.field = number 20.wrap =
|
30.if.isFalse.field = number 30 = TEXT 30.value = } field.date_reg = COA field.date_reg { 10 = TEXT 10.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_date_reg 10.if.isTrue.field = date_reg 10.wrap =
|
20 = CASE 20.key.field = date_reg 20.default = TEXT 20.default.field = date_reg 20.default.strftime = %d.%m.%Y 20.default.wrap =
|
20.0 = TEXT 20.0.value = } field.title = COA field.title { 10 = TEXT 10.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_title 10.if.isTrue.field = title 10.wrap =
|
20 = TEXT 20.field = title 20.if.isTrue.field = title 20.wrap =
|
30.if.isFalse.field = title 30 = TEXT 30.value = } field.power_ps = COA field.power_ps { 10 = TEXT 10.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_power_ps 10.if.isTrue.field = power_ps 10.wrap =
|
20 = COA 20 { 10 = TEXT 10.field = power_ps 10.wrap = |/ 20 = TEXT 20.field = power_kw } 20.if.isTrue.field = power_ps 20.wrap =
|
30.if.isFalse.field = power_ps 30 = TEXT 30.value = } field.date_con = COA field.date_con { 10 = TEXT 10.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_date_con 10.if.isTrue.field = date_con 10.wrap =
|
20 = CASE 20.key.field = date_con 20.default = TEXT 20.default.field = date_con 20.default.strftime = %d.%m.%Y 20.default.wrap =
|
20.0 = TEXT 20.0.value = } field.km = COA field.km { 10 = TEXT 10.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_km 10.if.isTrue.field = km 10.wrap =
|
20 = TEXT 20.field = km 20.if.isTrue.field = km 20.wrap =
| km
30.if.isFalse.field = km 30 = TEXT 30.value = } field.price = COA field.price { 10 = TEXT 10.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_price 10.wrap =
|
20 = TEXT 20.field = price 20.if.isTrue.field = price 20.wrap =
| €
30 = TEXT 30.if.isFalse.field = price 30.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_pricerequest 30.wrap =
|
} field.aircondition = COA field.aircondition { 10 = TEXT 10.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_aircondition 10.wrap =
|
20 = CASE 20.key.field = aircondition 20.default = IMAGE 20.default.file = EXT:wt_carmarket/files/no.gif 20.default.wrap =
|
20.1 = IMAGE 20.1.file = EXT:wt_carmarket/files/ok.gif 20.1.wrap =
|
} field.description = COA field.description { 10 = TEXT 10.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_description 10.if.isTrue.field = description 10.wrap =
|
20 = TEXT 20.field = description 20.if.isTrue.field = description 20.wrap =
|
30.if.isFalse.field = description 30 = TEXT 30.value = } field.pictures = COA field.pictures { 10 = TEXT 10.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_pictures 10.if.isTrue.field = pictures 10.wrap =
|
20 = IMAGE 20 { file { import.dataWrap = {$plugin.wtcarmarket.path.pictures} import.field = pictures import.listNum = 0 width = 120 } } 20.if.isTrue.field = pictures 20.wrap =
|
30.if.isFalse.field = pictures 30 = TEXT 30.value = } field.wheelbase = COA field.wheelbase { 10 = TEXT 10.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_wheelbase 10.if.isTrue.field = wheelbase 10.wrap =
|
20 = TEXT 20.field = wheelbase 20.if.isTrue.field = wheelbase 20.wrap =
| cm
30.if.isFalse.field = wheelbase 30 = TEXT 30.value = } field.location = COA field.location { 10 = TEXT 10.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_location 10.if.isTrue.field = location 10.wrap =
|
20 = TEXT 20.field = location 20.if.isTrue.field = location 20.wrap =
|
30.if.isFalse.field = location 30 = TEXT 30.value = } field.numberofobjects = COA field.numberofobjects { 10 = TEXT 10.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_numberofobjects 10.if.isTrue.field = numberofobjects 10.wrap =
|
20 = TEXT 20.field = numberofobjects 20.if.isTrue.field = numberofobjects 20.wrap =
|
30.if.isFalse.field = numberofobjects 30 = TEXT 30.value = } field.cat_category_title = COA field.cat_category_title { 10 = TEXT 10.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_cat_category 10.if.isTrue.field = cat_category_title 10.wrap =
|
20 = TEXT 20.field = cat_category_title 20.if.isTrue.field = cat_category_title 20.wrap =
|
30.if.isFalse.field = cat_category_title 30 = TEXT 30.value = } field.cat_brand_title = COA field.cat_brand_title { 10 = TEXT 10.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_cat_brand 10.if.isTrue.field = cat_brand_title 10.wrap =
|
20 = TEXT 20.field = cat_brand_title 20.if.isTrue.field = cat_brand_title 20.wrap =
|
30.if.isFalse.field = cat_brand_title 30 = TEXT 30.value = } field.cat_pollutant_title = COA field.cat_pollutant_title { 10 = TEXT 10.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_cat_pollutant 10.if.isTrue.field = cat_pollutant_title 10.wrap =
|
20 = TEXT 20.field = cat_pollutant_title 20.if.isTrue.field = cat_pollutant_title 20.wrap =
|
30.if.isFalse.field = cat_pollutant_title 30 = TEXT 30.value = } field.cat_driverscab_title = COA field.cat_driverscab_title { 10 = TEXT 10.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_cat_driverscab 10.if.isTrue.field = cat_driverscab_title 10.wrap =
|
20 = TEXT 20.field = cat_driverscab_title 20.if.isTrue.field = cat_driverscab_title 20.wrap =
|
30.if.isFalse.field = cat_driverscab_title 30 = TEXT 30.value = } field.cat_gear_title = COA field.cat_gear_title { 10 = TEXT 10.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_cat_gear 10.if.isTrue.field = cat_gear_title 10.wrap =
|
20 = TEXT 20.field = cat_gear_title 20.if.isTrue.field = cat_gear_title 20.wrap =
|
30.if.isFalse.field = cat_gear_title 30 = TEXT 30.value = } field.cat_axis_title = COA field.cat_axis_title { 10 = TEXT 10.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_cat_axis 10.if.isTrue.field = cat_axis_title 10.wrap =
|
20 = TEXT 20.field = cat_axis_title 20.if.isTrue.field = cat_axis_title 20.wrap =
|
30.if.isFalse.field = cat_axis_title 30 = TEXT 30.value = } field.cat_weight_title = COA field.cat_weight_title { 10 = TEXT 10.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_cat_weight 10.if.isTrue.field = cat_weight_title 10.wrap =
|
20 = TEXT 20.field = cat_weight_title 20.if.isTrue.field = cat_weight_title 20.wrap =
|
30.if.isFalse.field = cat_weight_title 30 = TEXT 30.value = } } # Pagebrowser pagebrowser = HMENU pagebrowser { special = userfunction special.userFunc = user_wtcarmarket_pagebrowser->user_pagebrowser 1 = TMENU 1 { wrap = NO.allWrap =
  • |
  • ACT = 1 ACT.allWrap =
  • |
  • ACT.ATagParams = class="act" } } } .. _setup-field-possibilities-for-typoscript: setup: .field possibilities for typoscript ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. _Example-use: Example use: """""""""""" :: ... # Click on picture should forward from list- to detailview: field.pictures = COA field.pictures { 10 = TEXT 10.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_pictures 10.if.isTrue.field = pictures 10.wrap =
    |
    20 = IMAGE 20 { file { import.dataWrap = {$plugin.wtcarmarket.path.pictures} import.field = pictures import.listNum = 0 width = 80 } imageLinkWrap = 1 imageLinkWrap.enable = 1 imageLinkWrap.typolink.parameter.field = _link_detail } 20.if.isTrue.field = pictures 20.wrap =
    |
    } ... .. _All-possibilities-list-and-detailview: All possibilities (list- and detailview): """"""""""""""""""""""""""""""""""""""""" .. ### BEGIN~OF~TABLE ### .. _Name: **Name** ~~~~~~~~ .. container:: table-row a **Name** b **Explanation** .. _number: number ~~~~~~ .. container:: table-row a number b Intern number .. _date-reg: date\_reg ~~~~~~~~~ .. container:: table-row a date\_reg b Registration date .. _title: title ~~~~~ .. container:: table-row a title b Title of object .. _power-ps: power\_ps ~~~~~~~~~ .. container:: table-row a power\_ps b Horsepower .. _date-con: date\_con ~~~~~~~~~ .. container:: table-row a date\_con b Date of construction .. _km: km ~~ .. container:: table-row a km b Driven Kilometers .. _price: price ~~~~~ .. container:: table-row a price b Price .. _aircondition: aircondition ~~~~~~~~~~~~ .. container:: table-row a aircondition b Has air condition .. _description: description ~~~~~~~~~~~ .. container:: table-row a description b Description .. _pictures: pictures ~~~~~~~~ .. container:: table-row a pictures b Pictures .. _wheelbase: wheelbase ~~~~~~~~~ .. container:: table-row a wheelbase b Wheelbase .. _location: location ~~~~~~~~ .. container:: table-row a location b Location where to buy or find object .. _numberofobjects: numberofobjects ~~~~~~~~~~~~~~~ .. container:: table-row a numberofobjects b Number of objects (if there are more than only one) .. _field1-field2-field10: field1 (field2, ..., field10) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. container:: table-row a field1 (field2, ..., field10) b If you need some extra fields – you can define them via typoscript .. _cat-category-title: cat\_category\_title ~~~~~~~~~~~~~~~~~~~~ .. container:: table-row a cat\_category\_title b Title of category (category) .. _cat-brand-title: cat\_brand\_title ~~~~~~~~~~~~~~~~~ .. container:: table-row a cat\_brand\_title b Title of brand (category) .. _cat-pollutant-title: cat\_pollutant\_title ~~~~~~~~~~~~~~~~~~~~~ .. container:: table-row a cat\_pollutant\_title b Title of pollutant (category) .. _cat-driverscab-title: cat\_driverscab\_title ~~~~~~~~~~~~~~~~~~~~~~ .. container:: table-row a cat\_driverscab\_title b Title of drivers cab (category) .. _cat-gear-title: cat\_gear\_title ~~~~~~~~~~~~~~~~ .. container:: table-row a cat\_gear\_title b Title of gear (category) .. _cat-axis-title: cat\_axis\_title ~~~~~~~~~~~~~~~~ .. container:: table-row a cat\_axis\_title b Title of axis (category) .. _cat-weight-title: cat\_weight\_title ~~~~~~~~~~~~~~~~~~ .. container:: table-row a cat\_weight\_title b Title of weight (category) .. _cat-cat1-title: cat\_cat1\_title ~~~~~~~~~~~~~~~~ .. container:: table-row a cat\_cat1\_title b Title of additional category with mn relation .. _pid-detail: \_pid\_detail ~~~~~~~~~~~~~ .. container:: table-row a \_pid\_detail b PID where to find detail view (usefull, if you want to use typolink to detailview) .. _pid-list: \_pid\_list ~~~~~~~~~~~ .. container:: table-row a \_pid\_list b PID where to find list view (usefull, if you want to use typolink to listview) .. _bigtitle: bigtitle ~~~~~~~~ .. container:: table-row a bigtitle b Brand + Title .. ###### END~OF~TABLE ###### .. _constants: constants ^^^^^^^^^ :: ### # This are the default TS-constants for wt_carmarket ## plugin.wtcarmarket { # cat=plugin.wtcarmarket/file/010; type=file[html,htm,tmpl,txt]; label= Template File List: HTML-template file for list view (see EXT:wt_carmarket/templates/list.html for an example) template.list = EXT:wt_carmarket/templates/list.html # cat=plugin.wtcarmarket/file/020; type=file[html,htm,tmpl,txt]; label= Template File Detail: HTML-template file for detail view (see EXT:wt_carmarket/templates/detail.html for an example) template.detail = EXT:wt_carmarket/templates/detail.html # cat=plugin.wtcarmarket/file/030; type=file[html,htm,tmpl,txt]; label= Template for Pagebrowser: HTML-template file for pagebrowser in listview (see EXT:wt_carmarket/templates/pagebrowser.html for an example) template.pagebrowser = EXT:wt_carmarket/templates/pagebrowser.html # cat=plugin.wtcarmarket/file/040; type=file[html,htm,tmpl,txt]; label= Template for Category choose: HTML-template category dropdowns above the list view (see EXT:wt_carmarket/templates/categorychoose.html for an example) template.catchoose = EXT:wt_carmarket/templates/categorychoose.html # cat=plugin.wtcarmarket//200; type=text; label= List view - order by: Define order by for the listing - just use any field and asc or desc for the sorting direction. Error happens, if a non existing field will be used (e.g. tx_wtcarmarket_object.sorting ASC) list.orderby = tx_wtcarmarket_object.sorting ASC # cat=plugin.wtcarmarket//210; type=int; label= Show results per page: Show X results per page in list view (e.g. 100) list.perPage = 10 # cat=plugin.wtcarmarket//400; type=text; label= Picture path: Path where the uploaded pictures are stored (e.g. uploads/tx_wtcarmarket/) path.pictures = uploads/tx_wtcarmarket/ # cat=plugin.wtcarmarket//500; type=int; label= Startyear for yearchoose: Define start year for yearchoose (e.g. 1980) yearchoose.startyear = 1980 # cat=plugin.wtcarmarket/enable/600; type=boolean; label= Category filter: Enable or disable this filter in Frontend filter.category = 1 # cat=plugin.wtcarmarket/enable/610; type=boolean; label= Brand filter: Enable or disable this filter in Frontend filter.brand = 1 # cat=plugin.wtcarmarket/enable/620; type=boolean; label= Pollutant filter: Enable or disable this filter in Frontend filter.pollutant = 1 # cat=plugin.wtcarmarket/enable/630; type=boolean; label= Driverscab filter: Enable or disable this filter in Frontend filter.driverscab = 1 # cat=plugin.wtcarmarket/enable/640; type=boolean; label= Gear filter: Enable or disable this filter in Frontend filter.gear = 1 # cat=plugin.wtcarmarket/enable/650; type=boolean; label= Axis filter: Enable or disable this filter in Frontend filter.axis = 1 # cat=plugin.wtcarmarket/enable/660; type=boolean; label= Weight filter: Enable or disable this filter in Frontend filter.weight = 1 # cat=plugin.wtcarmarket/enable/670; type=boolean; label= Year filter: Enable or disable this filter in Frontend filter.year = 1 # cat=plugin.wtcarmarket/enable/680; type=boolean; label= Cat1 filter: Enable or disable this filter in Frontend filter.cat1 = 1 } .. _prefill-powermail-fields: prefill powermail fields ^^^^^^^^^^^^^^^^^^^^^^^^ .. _Typoscript-example: Typoscript example """""""""""""""""" :: plugin.tx_wtcarmarket_pi1 { # fill uid5 with title powermailprefill.uid5 = TEXT powermailprefill.uid5.field = title # fill uid6 with intern number powermailprefill.uid6 = TEXT powermailprefill.uid6.field = number # fill uid12 with title again powermailprefill.uid12 = TEXT powermailprefill.uid12.field = title # fill uid62 with date of registration (like 10.12.2002) powermailprefill.uid62 = TEXT powermailprefill.uid62.field = date_reg powermailprefill.uid62.strftime = %d.%m.%Y } .. _Note: Note ---- - Enable nearly anything via typoscript - Pagebrowser could be changed via typoscript .. _FAQ: FAQ --- .. _How-to-prefill-a-powermail-form-with-values-of-any-object: How to prefill a powermail form with values of any object ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ See typoscript above .. _I-want-to-change-some-label-text: I want to change some label text ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ See next FAQ how to define (or rewrite) any text via typoscript .. _I-want-to-enter-a-dynamic-locallang-marker-in-any-html-template: I want to enter a dynamic locallang marker in any html template ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Example marker in any html template: :: ###WTCARMARKET_LL_ANYTHING### Example typoscript code to fill this marker: :: plugin.tx_wtcarmarket_pi1._LOCAL_LANG.en { wtcarmarket_ll_anything = The results of your search: } plugin.tx_wtcarmarket_pi1._LOCAL_LANG.de { wtcarmarket_ll_anything = Ihre Suche ergab: } .. _I-want-to-enter-a-dynamic-typoscript-marker-in-any-html-template: I want to enter a dynamic typoscript marker in any html template ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Example marker (print button) in any html template: ###WTCARMARKET\_TS\_PRINT### Example typoscript code to fill this marker: :: temp.print = TEXT temp.print.value = Printversion temp.print.typolink { parameter.dataWrap = {TSFE:id},98 800x600 addQueryString = 1 useCacheHash = 1 ATagParams = class="print-link" title = Print this page JSwindow_params = scrollbars=1,resizable=0 } plugin.tx_wtcarmarket_pi1.dynamicTyposcript { print < temp.print } Of course you can use any typoscript and give it to any marker in any html template .. _I-want-to-remove-rename-some-fields-in-the-backend: I want to remove/rename some fields in the backend ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Disable Example: :: TCEFORM { tx_wtcarmarket_object { hidden.disabled = 1 sys_language_uid.disabled = 1 date_reg.disabled = 1 power_ps.disabled = 1 power_kw.disabled = 1 } } Rename Example: :: TCEFORM { tx_wtcarmarket_object { title.label.de = Rennfahrzeug title.label.default = Sports car } } .. _I-want-to-change-the-sorting-of-the-field-I-want-to-change-a-field-in-e-g-a-textarea: I want to change the sorting of the field / I want to change a field in (e.g.) a textarea ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ I suggest you to add an extra extension which manipulates the sorting or the fieldsettings with an own TCA configuration .. _Field1-or-FieldN-is-not-shown-what-is-wrong: Field1 (or FieldN) is not shown – what is wrong? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Maybe you forgot to define the field via typoscript for the list- and the defailview .. _I-just-need-two-or-something-like-that-categories: I just need two (or something like that) categories ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Just disable some categories via constants .. _Changing-a-category-into-another-category: Changing a category into another category ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Don't matter which category name – just use it and rewrite the label of this category .. _Todos: Todos ----- Puh, I think there could be a lot to do Do you need a new feature? Maybe we can help you, so just write us! .. _Changelog: Changelog --------- .. _generated: ((generated)) ^^^^^^^^^^^^^ .. _wt-carmarket-version-0-3-x-alpha: wt\_carmarket version 0.3.x alpha """"""""""""""""""""""""""""""""" .. _Update-on-28-10-2009-version-0-3-3: Update on 28.10.2009 version 0.3.3 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ m:n category added .. _Update-on-08-02-2009-version-0-3-3: Update on 08.02.2009 version 0.3.3 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Small fix in translation .. _Update-on-20-10-2008-version-0-3-2: Update on 20.10.2008 version 0.3.2 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Small fix in Russian translation .. _Initial-Release-to-TER-on-12-10-2008-version-0-3-1: Initial Release to TER on 12.10.2008 version 0.3.1 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Basic features enabled .. _Additional-links: Additional links ---------------- **You can use one of the following links, to get more informations about this plugin:** - Authors (Alex Kellner) homepage: `http://www.einpraegsam.net `_ - Tuning parts for your car: `http://www.wunschtacho.de `_ - Stuff for snowboarder and skier: `http://www.justpowder.de `_ Do you need help with this plugin: `http://www.typo3.net `_ |img-7| wt\_carmarket - 29 .. ######CUTTER_MARK_IMAGES###### .. |img-1| image:: img-1.jpeg .. :align: left .. :border: 0 .. :height: 500 .. :id: Grafik1 .. :name: Grafik1 .. :width: 669 .. |img-2| image:: img-2.jpeg .. :align: left .. :border: 0 .. :height: 959 .. :id: Grafik2 .. :name: Grafik2 .. :width: 434 .. |img-3| image:: img-3.jpeg .. :align: left .. :border: 0 .. :height: 764 .. :id: Grafik3 .. :name: Grafik3 .. :width: 669 .. |img-4| image:: img-4.jpeg .. :align: left .. :border: 0 .. :height: 918 .. :id: Grafik6 .. :name: Grafik6 .. :width: 316 .. |img-5| image:: img-5.jpeg .. :align: left .. :border: 0 .. :height: 283 .. :id: Grafik4 .. :name: Grafik4 .. :width: 669 .. |img-6| image:: img-6.jpeg .. :align: left .. :border: 0 .. :height: 99 .. :id: Grafik5 .. :name: Grafik5 .. :width: 669 .. |img-7| image:: img-7.png .. :align: left .. :border: 0 .. :height: 32 .. :id: Graphic1 .. :name: Graphic1 .. :width: 102