Blog

On the file EXT:myext/Classes/Xclass/ContentObjectRenderer.php



<?php
namespace TYPO3\Myext\Xclass;

class ContentObjectRenderer extends \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer {

    /**
  …

Read more

Here is how we can wrap text content element by custom div class.

temp.text < tt_content.text
tt_content.text = CASE
tt_content.text {
    key.field = layout

    0 < temp.text
    0.stdWrap.innerWrap =…

Read more

How to add the section frames by preserving the content element ID.

1. In TS template


tt_content.stdWrap.innerWrap.cObject {
    100 < tt_content.stdWrap.innerWrap.cObject.default
    100.20.10.value =…

Read more

Standard-Repository-Methods


// add
$myRepository->add($myModel);
 
// remove
$myRepository->remove($myModel);
 
// removeAll
$myRepository->removeAll();
 
// replace
$myRepository->replace($myModel,…

Read more

ext_tables.php


#
# TABLE STRUCTURE FOR TABLE 'cf_extkey_cache'
#
CREATE TABLE cf_extkey_cache (
    id INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
    identifier VARCHAR(250) DEFAULT '' NOT NULL,
    crdate…

Read more

This works for tx_news (news system)

[globalVar = GP:tx_news_pi1|news > 0]
temp.newstitle = CONTENT
temp.newstitle {
     table = tx_news_domain_model_news
     select {
         selectFields = title
     …

Read more
Categories