If we add the image content element, the image HTML output looks something like this.

<div class="csc-textpic csc-textpic-center csc-textpic-above">
   <div class="csc-textpic-imagewrap"...

Read more

Here I am extending the table tt_content to have the checkbox "Hide in mobile" on every content element.

On ext_tables.sql of custom extension,

CREATE TABLE tt_content (
   hidein_phone tinyint(4)...

Read more

To start Angular js application, "ng-app" is often needed to add in the <html> tag.

Below is the typoscript that does this job.

config.htmlTag_setParams = ng-app="docsApp"

this converts <html> to...

Read more

The $GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'] global array acts as a registry of XCLASSed classes.


In ext_localconf.php


Read more

We have an extension called typext

in model we have

    class Typext{
        ... get set methods ...


in TypextController.php

    namespace TYPO3\Typext\Controller; 


Read more

In this example we have described how to extend the extension.
Here we are adding a field called 'mobile' to the fe_users table and described how we can extend it to the original extension.



Read more

After I moved TYPO3 site from one server to another, I got the blank page with following error on error log.

mod_fcgid: stderr: PHP Strict Standards:  Non-static method t3lib_div::getClassName()...

Read more

On the file EXT:myext/Classes/Xclass/ContentObjectRenderer.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