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

1.9. Backend module

Introduction

Powermail offers a backend module to view all mails in the database

  1. Choose Powermail in the Web menu on the left site of the backend

  1. Now you can choose any page of the pagetree

  2. If the chosen page contents powermails, a list with mails is shown to you

  3. You can filter the mails by using the two fields above the list (first field is the starttime, second field the endtime)

  4. Export symbols:

  5. Excel symbol: Export the current list to an xls file

  6. CSV symbol: Generate and download a CSV file

  7. HTML table symbol: Just generate a html table without any formats

Define your export file as you want via tsconfig

Use tsconfig of the page where your powermails are listed, to manipulate the export file or the listing in the backend (see example)

Example

# set columns

tx_powermail_mod1.export {

   number = #

   uid42 = Title

   uid43 = Prename

   uid44 = Lastname

   uid45 = Email

   date = Registration-Date

   time = Registration-Time

}

# set config

tx_powermail_mod1.config {

   export.useTitle = 1

   export.dateformat = d.m.Y

   export.timeformat = H:i

   list.perPage = 50

   list.filterstart = 2008-04-01 00:00

   list.filterend = 2008-12-01 00:00

   list.dateformat = d.m.Y H:i

}

Example file for tsconfig above

#

Title

Prename

Lastname

Email

Registration-Date

Registration-Time

1.

Dr.

Alex

Kellner

test@test.de

01.01.2009

12:23

2.

Mischa

Heissmann

test@test.com

23.12.2208

16:11

Available markers for tsconfig

Export settings (prefix: tx_powermail_mod1.export)

Name

Explanation

What is this

Default if no tsconfig set

number

Just an ascending number

Field value

1

date

Registration date (format can be set – see below)

Field value

1

time

Registration time (format can be set – see below)

Field value

1

sender

Email of sender

Field value

1

senderIP

IP address of sender

Field value

1

recipient

Email of recipient

Field value

1

subject_r

Email subject to recipient

Field value

1

formid

Page ID where the form is in

Field value

1

content

Email content

Field value

0

UserAgent

UserAgent of sender

Field value

1

Referer

Referer of sender

Field value

1

SP_TZ

Location of sender

Field value

1

uid

This automaticly fills columns with ALL pivars

Field value

1

uid[NUMBER]

Define your own columns and use it like uid55

Field value

0

uid[NUMBER]_[NUMBER]

Define your own columns for values in second level (maybe checkboxes or multiple selections) like uid55_0 and uid55_1

Field value

0

Configuration of export and list  (prefix: tx_powermail_mod1.config)

Name

Explanation

What is this

Default if no tsconfig set

export.useTitle

Configure if title should be displayed in the first line of the export file (boolean)

Configuration of export file

1

export.dateformat

Configure your wanted date format in the export file (see http://php.net/manual/function.date.php for details)

Configuration of export file

Y-m-d

export.timeformat

Configure your wanted time format in the export file (see http://php.net/manual/function.date.php for details)

Configuration of export file

H:i:s

list.perPage

Change the number of listed mails per page in the backendform (default: 100)

Configuration of listing in backend

100

list.filterstart

Set your own static filter starttime, if you want to show or hide some old mails (like: 2008-12-23 12:19)

Configuration of listing in backend

[currentYear]-[currentMonth]-01 00:00

list.filterend

Set your own static filter endtime, if you want to show or hide some old mails (like: 2015-01-01 12:00)

Configuration of listing in backend

Current time like 2008-01-01 00:00

list.dateformat

Date format for the backend listing (see http://php.net/manual/function.date.php for details)

Configuration of listing in backend

Y-m-d H:i