[TYPO3-german] standardfeld tstamp in extbase ausgeben ? (with solution!)

Ralf-Rene Schröder ralf.rene at online.de
Tue Apr 21 18:30:54 CEST 2015


Hallo, ich möchte für eine im extensionbuilder erstellte Extension aus
das feld tstamp mit ausgeben (und darauf prüfen)

folgendes habe ich in meinem "Smallad.php" Modell gemcht
(was fehlt da noch ???)

	/**
	 * tstamp
	 * @var int
	 */
	protected $tstamp = '';

	/**
	 * Returns the tstamp
	 * @return int $tstamp
	 */
	public function getTstamp() {
		return $this->tstamp;
	}

	/**
	 * Sets the tstamp
	 * @param int $tstamp
	 * @return void
	 */
	public function setTstamp($tstamp) {
		$this->tstamp = $tstamp;
	}

und im TCA habe ich noch folgendes hinzugefügt:

    'tstamp' => array(
      'exclude' => 1,
      'label' => 'TimeStamp',
      'config' => Array (
        'type' => 'none',
        'format' => 'date',
        'eval' => 'date',
      ),
    ),

trotzdem bekomme ich mit folgendem keine Ausgabe:
{smallad.tstamp}
und hiermit dann logischerweise das aktuelle Datum:
<f:format.date format="d.m.Y">{smallad.tstamp}</f:format.date>

_____________________________________________________________________

so, normalerweise findet man die Lösung gleich nach dem abschicken...
ich hab sie jetzt schon vorher gefunden, aber damit das Schreiben nicht
umsonst war (vielleicht hilft es ja jemandem) schicke ich es jetzt samt
Lösung ab:

im TCA fehlte noch der Eintrag bei showRecordFieldList:
'interface' => array(
  'showRecordFieldList' => 'sys_language_uid, ... , tstamp',
),


-- 
image[FORMAT] - Ralf-René Schröder
http://www.image-format.eu ... Wir geben Ihrem Image das richtige Format


More information about the TYPO3-german mailing list