image

Blog

To download the files that are added from the FCE, instead opening them in the browser, please add the following code

 

The XML structure

 

<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T...

Read more

The following code represents how the payment and shipping is integrated in tt_products extension configuration

 

plugin.tt_products{
    
    ### PAYMENT ###
    payment {
        radio = 1
       ...

Read more

Add the following typoscript to get the icon for menu, from its page's media files options.

 

lib.menu = HMENU
lib.menu {
    entryLevel = 1
    expAll = 1
    1 = TMENU
    1{
        wrap = <ul...

Read more

Generally, the content element div looks like this

<div id="c286" class="csc-default"></div>

Below typoscript helps to add custom class to content element div's to look like below

<div id="c286" cl...

Read more

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.

Examples

In ext_localconf.php



$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']['TYPO3\\CMS\\Fronten...

Read more

We have an extension called typext

in model we have


<?php
    class Typext{
        ... get set methods ...
    }
?>

 

in TypextController.php



<?php
    namespace TYPO3\Typext\Controller; 

    class...

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.

 

Step1:...

Read more
Categories