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.

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

Extension Key: wt_carmarket

Copyright 2005-2008,

Alex Kellner,

<Alexander.Kellner@einpraegsam.net>

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

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

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?

wt_doorman (for security reasons)

Screenshots

Listview with filter possibilities

img-1

Detailview with form prefill possibility

img-2

Acknowledgments

Creation of this extension was powered by AnD Institute ( http://www.and.at/ )

How to use

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

Screenshot

img-3

Explanation

Object

Main table for objects (enter a description, pictures and set relation to the categories)

Category

Define some definitions for your cars or trucks (optional)

Brand

Define some car brands (optional)

Brand

Define some pollutant categories (optional)

Driverscab

Define some drivers cab categories (optional)

Gear

Define some gear categories (optional)

Axis

Define some axis categories (optional)

Weight

Define some weight categories (optional)

Note

You can use your own categories (you don't have to use weight – just use another category with this)

Page record explanation objects

Screenshot

img-4

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

Screenshot List

img-5

Screenshot Detail

img-6

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

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 = <dt>|</dt>
                        20 = TEXT
                        20.field = number
                        20.if.isTrue.field = number
                        20.wrap = <dd>|</dd>
                        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 = <dt>|</dt>
                        20 = CASE
                        20.key.field = date_reg
                        20.default = TEXT
                        20.default.field = date_reg
                        20.default.strftime = %d.%m.%Y
                        20.default.wrap = <dd>|</dd>
                        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 = <dt>|</dt>
                        20 = TEXT
                        20.field = title
                        20.if.isTrue.field = title
                        20.wrap = <dd>|</dd>
                        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 = <dt>|</dt>

                        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 = <dd>|</dd>

                        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 = <dt>|</dt>
                        20 = CASE
                        20.key.field = date_con
                        20.default = TEXT
                        20.default.field = date_con
                        20.default.strftime = %d.%m.%Y
                        20.default.wrap = <dd>|</dd>
                        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 = <dt>|</dt>
                        20 = TEXT
                        20.field = km
                        20.if.isTrue.field = km
                        20.wrap = <dd>|&nbsp;km</dd>
                        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 = <dt>|</dt>

                        20 = TEXT
                        20.field = price
                        20.if.isTrue.field = price
                        20.wrap = <dd>|&nbsp;&euro;</dd>

                        30 = TEXT
                        30.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_pricerequest
                        30.if.isFalse.field = price
                        30.wrap = <dd>|</dd>
                }

                field.aircondition = COA
                field.aircondition {
                        10 = TEXT
                        10.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_aircondition
                        10.wrap = <dt>|</dt>
                        20 = CASE
                        20.key.field = aircondition
                        20.default = IMAGE
                        20.default.file = EXT:wt_carmarket/files/no.gif
                        20.default.wrap = <dd>|</dd>
                        20.1 = IMAGE
                        20.1.file = EXT:wt_carmarket/files/ok.gif
                        20.1.wrap = <dd>|</dd>
                }

                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 = <dt>|</dt>
                        20 = TEXT
                        20.field = description
                        20.if.isTrue.field = description
                        20.wrap = <dd>|</dd>
                        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 = <dt>|</dt>

                        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 = |&nbsp;

                                                10.imageLinkWrap = 1
                                                10.imageLinkWrap.enable = 1
                                                10.imageLinkWrap {
                                                        bodyTag = <body style="background-color: white;">
                                                        wrap = <a href="javascript:close();">|</a>
                                                        JSwindow = 1
                                                        JSwindow.newWindow = 1
                                                }
                                        }
                                }
                        }
                        20.if.isTrue.field = pictures
                        20.wrap = <dd>|</dd>

                        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 = <dt>|</dt>
                        20 = TEXT
                        20.field = wheelbase
                        20.if.isTrue.field = wheelbase
                        20.wrap = <dd>|&nbsp;cm</dd>
                        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 = <dt>|</dt>
                        20 = TEXT
                        20.field = location
                        20.if.isTrue.field = location
                        20.wrap = <dd>|</dd>
                        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 = <dt>|</dt>
                        20 = TEXT
                        20.field = numberofobjects
                        20.if.isTrue.field = numberofobjects
                        20.wrap = <dd>|</dd>
                        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 = <dt>|</dt>
                        20 = TEXT
                        20.field = cat_category_title
                        20.if.isTrue.field = cat_category_title
                        20.wrap = <dd>|</dd>
                        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 = <dt>|</dt>
                        20 = TEXT
                        20.field = cat_brand_title
                        20.if.isTrue.field = cat_brand_title
                        20.wrap = <dd>|</dd>
                        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 = <dt>|</dt>
                        20 = TEXT
                        20.field = cat_pollutant_title
                        20.if.isTrue.field = cat_pollutant_title
                        20.wrap = <dd>|</dd>
                        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 = <dt>|</dt>
                        20 = TEXT
                        20.field = cat_driverscab_title
                        20.if.isTrue.field = cat_driverscab_title
                        20.wrap = <dd>|</dd>
                        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 = <dt>|</dt>
                        20 = TEXT
                        20.field = cat_gear_title
                        20.if.isTrue.field = cat_gear_title
                        20.wrap = <dd>|</dd>
                        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 = <dt>|</dt>
                        20 = TEXT
                        20.field = cat_axis_title
                        20.if.isTrue.field = cat_axis_title
                        20.wrap = <dd>|</dd>
                        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 = <dt>|</dt>
                        20 = TEXT
                        20.field = cat_weight_title
                        20.if.isTrue.field = cat_weight_title
                        20.wrap = <dd>|</dd>
                        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 = <dt>|</dt>
                        20 = TEXT
                        20.field = cat_cat1_title
                        20.if.isTrue.field = cat_cat1_title
                        20.wrap = <dd>|</dd>
                        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 = <dt>|</dt>
                        20 = TEXT
                        20.field = number
                        20.if.isTrue.field = number
                        20.wrap = <dd>|</dd>
                        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 = <dt>|</dt>
                        20 = CASE
                        20.key.field = date_reg
                        20.default = TEXT
                        20.default.field = date_reg
                        20.default.strftime = %d.%m.%Y
                        20.default.wrap = <dd>|</dd>
                        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 = <dt>|</dt>
                        20 = TEXT
                        20.field = title
                        20.if.isTrue.field = title
                        20.wrap = <dd>|</dd>
                        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 = <dt>|</dt>

                        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 = <dd>|</dd>

                        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 = <dt>|</dt>
                        20 = CASE
                        20.key.field = date_con
                        20.default = TEXT
                        20.default.field = date_con
                        20.default.strftime = %d.%m.%Y
                        20.default.wrap = <dd>|</dd>
                        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 = <dt>|</dt>
                        20 = TEXT
                        20.field = km
                        20.if.isTrue.field = km
                        20.wrap = <dd>|&nbsp;km</dd>
                        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 = <dt>|</dt>

                        20 = TEXT
                        20.field = price
                        20.if.isTrue.field = price
                        20.wrap = <dd>|&nbsp;&euro;</dd>

                        30 = TEXT
                        30.if.isFalse.field = price
                        30.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_pricerequest
                        30.wrap = <dd>|</dd>
                }

                field.aircondition = COA
                field.aircondition {
                        10 = TEXT
                        10.data = LLL:EXT:wt_carmarket/pi1/locallang.xml:wtcarmarket_ll_aircondition
                        10.wrap = <dt>|</dt>
                        20 = CASE
                        20.key.field = aircondition
                        20.default = IMAGE
                        20.default.file = EXT:wt_carmarket/files/no.gif
                        20.default.wrap = <dd>|</dd>
                        20.1 = IMAGE
                        20.1.file = EXT:wt_carmarket/files/ok.gif
                        20.1.wrap = <dd>|</dd>
                }

                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 = <dt>|</dt>
                        20 = TEXT
                        20.field = description
                        20.if.isTrue.field = description
                        20.wrap = <dd>|</dd>
                        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 = <dt>|</dt>

                        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 = <dd>|</dd>

                        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 = <dt>|</dt>
                        20 = TEXT
                        20.field = wheelbase
                        20.if.isTrue.field = wheelbase
                        20.wrap = <dd>|&nbsp;cm</dd>
                        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 = <dt>|</dt>
                        20 = TEXT
                        20.field = location
                        20.if.isTrue.field = location
                        20.wrap = <dd>|</dd>
                        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 = <dt>|</dt>
                        20 = TEXT
                        20.field = numberofobjects
                        20.if.isTrue.field = numberofobjects
                        20.wrap = <dd>|</dd>
                        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 = <dt>|</dt>
                        20 = TEXT
                        20.field = cat_category_title
                        20.if.isTrue.field = cat_category_title
                        20.wrap = <dd>|</dd>
                        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 = <dt>|</dt>
                        20 = TEXT
                        20.field = cat_brand_title
                        20.if.isTrue.field = cat_brand_title
                        20.wrap = <dd>|</dd>
                        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 = <dt>|</dt>
                        20 = TEXT
                        20.field = cat_pollutant_title
                        20.if.isTrue.field = cat_pollutant_title
                        20.wrap = <dd>|</dd>
                        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 = <dt>|</dt>
                        20 = TEXT
                        20.field = cat_driverscab_title
                        20.if.isTrue.field = cat_driverscab_title
                        20.wrap = <dd>|</dd>
                        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 = <dt>|</dt>
                        20 = TEXT
                        20.field = cat_gear_title
                        20.if.isTrue.field = cat_gear_title
                        20.wrap = <dd>|</dd>
                        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 = <dt>|</dt>
                        20 = TEXT
                        20.field = cat_axis_title
                        20.if.isTrue.field = cat_axis_title
                        20.wrap = <dd>|</dd>
                        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 = <dt>|</dt>
                        20 = TEXT
                        20.field = cat_weight_title
                        20.if.isTrue.field = cat_weight_title
                        20.wrap = <dd>|</dd>
                        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 = <ul class="wt_carmarket_pagebrowser">|</ul>
                        NO.allWrap = <li>|</li>
                        ACT = 1
                        ACT.allWrap = <li>|</li>
                        ACT.ATagParams = class="act"
                }
        }

}

setup: .field possibilities for typoscript

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 = <div class="wtcarmarket_list_text wtcarmarket_list_pictures_text">|</div>
        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 = <div class="wtcarmarket_list_field wtcarmarket_list_pictures_field">|</div>
}
...
All possibilities (list- and detailview):
Name

a

Name

b

Explanation

number

a

number

b

Intern number

date_reg

a

date_reg

b

Registration date

title

a

title

b

Title of object

power_ps

a

power_ps

b

Horsepower

date_con

a

date_con

b

Date of construction

km

a

km

b

Driven Kilometers

price

a

price

b

Price

aircondition

a

aircondition

b

Has air condition

description

a

description

b

Description

pictures

a

pictures

b

Pictures

wheelbase

a

wheelbase

b

Wheelbase

location

a

location

b

Location where to buy or find object

numberofobjects

a

numberofobjects

b

Number of objects (if there are more than only one)

field1 (field2, ..., field10)

a

field1 (field2, ..., field10)

b

If you need some extra fields – you can define them via typoscript

cat_category_title

a

cat_category_title

b

Title of category (category)

cat_brand_title

a

cat_brand_title

b

Title of brand (category)

cat_pollutant_title

a

cat_pollutant_title

b

Title of pollutant (category)

cat_driverscab_title

a

cat_driverscab_title

b

Title of drivers cab (category)

cat_gear_title

a

cat_gear_title

b

Title of gear (category)

cat_axis_title

a

cat_axis_title

b

Title of axis (category)

cat_weight_title

a

cat_weight_title

b

Title of weight (category)

cat_cat1_title

a

cat_cat1_title

b

Title of additional category with mn relation

_pid_detail

a

_pid_detail

b

PID where to find detail view (usefull, if you want to use typolink to detailview)

_pid_list

a

_pid_list

b

PID where to find list view (usefull, if you want to use typolink to listview)

bigtitle

a

bigtitle

b

Brand + Title

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

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

  • Enable nearly anything via typoscript
  • Pagebrowser could be changed via typoscript

FAQ

How to prefill a powermail form with values of any object

See typoscript above

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

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

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

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 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?

Maybe you forgot to define the field via typoscript for the list- and the defailview

I just need two (or something like that) categories

Just disable some categories via constants

Changing a category into another category

Don't matter which category name – just use it and rewrite the label of this category

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

((generated))

wt_carmarket version 0.3.x alpha
Update on 28.10.2009 version 0.3.3

m:n category added

Update on 08.02.2009 version 0.3.3

Small fix in translation

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

Basic features enabled