kitFramework Event/Contact: In der Kontakt Übersicht würde ich mir das Feld Kontakt-Bezeichner noch wünschen.

8 views
Skip to first unread message

Ralf Hertsch

unread,
Jan 22, 2014, 6:00:34 AM1/22/14
to phpmanufak...@googlegroups.com
In der Kontakt Übersicht würde ich mir das Feld Kontakt-Bezeichner noch wünschen.

Diese Frage hat Matthias gestellt.

Das lässt sich ganz nach Wunsch über die Konfigurationsdatei für das Übersichts-Template steuern.

Bei Contact befindet sich das Template in:

/kit2/extension/phpmanufaktur/phpManufaktur/Contact/Template/default/admin/list.contact.twig

die dazugehörige Konfigurationsdatei ist:

/kit2/extension/phpmanufaktur/phpManufaktur/Contact/Template/default/admin/list.contact.json

diese Datei kann mit jedem beliebigen Texteditor geöffnet und geändert werden:

{
  "columns":[
    "contact_id",
    "contact_type",
    "communication_email",
    "company_name",
    "person_first_name",
    "person_last_name",
    "address_city",
    "address_country_code"
  ],
  "list":{
    "rows_per_page":100,
    "select_status":[
      "ACTIVE",
      "LOCKED"
    ],
    "order":{
      "by":[
        "communication_email"
      ],
      "direction":"ASC"
    }
  }
}

in "columns" sind die Spalten der Übersicht aufgezählt - die Aufzählung bestimmt auch die Reihenfolge der Spalten von links nach rechts.

Spalte "Bezeichner" kann mit "contact_name" zusätzlich eingefügt werden:

Code hier eingeben...{
  "columns":[
    "contact_id",
    "contact_type",
    "contact_name",
    "communication_email",
    "company_name",
...

Um die Kontakliste in Event zu ändern sucht ihr nach:

/kit2/extension/phpmanufaktur/phpManufaktur/Event/Template/default/bootstrap/admin/contact/list.contact.json

und führt dort ebenfalls die gewünschte Änderung durch.

Folgende Felder stehen in der Kontaktliste zur Verfügung:

contact_id
contact_login
contact_name
contact_type
contact_status
person_id
person_gender
person_title
person_first_name
person_last_name
person_nick_name
person_birthday
company_id
company_name
company_department
communication_phone
communication_email
address_id
address_street
address_zip
address_city
address_area
address_state
address_country_code
tags
order_name
timestamp

Gruß
Ralf

Reply all
Reply to author
Forward
0 new messages