[TYPO3-german] tt_content in eigener Extbase Extension

mac pat me at patric.at
Mon Feb 19 12:32:59 CET 2018


Hallo Leute1

Im Backend kann ich wunderbar tt_content CE in meinen Datensätzen (als IRRE) anlegen. Die werde gespeichert und ich kann sie verändern.

Ich hab nun im TS folgendes stehen:

plugin.myext_test {
..
  persistence {
    storagePid = {$plugin.tx_myext.persistence.storagePid}
    #recursive = 1
    detailPid = {$plugin.tx_myext.persistence.detailPid}
    
    enableAutomaticCacheClearing = 1
    updateReferenceIndex = 0
    classes {
      My\MyExt\Domain\Model\Content {
        mapping {
          tableName = tt_content
            columns {
              uid.mapOnProperty = uid
              pid.mapOnProperty = pid
              sorting.mapOnProperty = sorting
              CType.mapOnProperty = contentType
              header.mapOnProperty = header
          }
        }
      }
    }

  }
  features {
    skipDefaultArguments = 1
  }
  mvc {
    #callDefaultActionIfActionCantBeResolved = 1
  }
}

Model und Repository sind angelegt. Im Controller von test steht das

$contents = $this->contentRepository->findAll();
$this->view->assign('contents', $contents);

Nach dieser Anleitung:
Aber im Fluid Template erscheint mit <f:debug>{contents}</f:debug> NULL.

Bin nach dieser Anleitung vorgegangen: http://www.lukasjakob.com/get-tt_content-data-in-your-extbase-extension/

Könnt ihr mir helfen?


More information about the TYPO3-german mailing list