To include the file only for the browser IE 9, Add the following typoscript.

page = PAGE
page.includeCSS {
        file1 = fileadmin/templates/{$projectName}/css/style-ie9.css
        file1.allWrap =...

Read more

This is the function to validate for the number when a key is pressed to fill the input field.


<div class="wrapper">
    <form method="" name="" >
        <input type="text" value="" name=""...

Read more

Some times we define DateTime property for a variable in model and in front end we provide different values.
This leads to an error while creating or updating the object's value.
In such cases we need...

Read more

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" ?>

Read more

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


    ### PAYMENT ###
    payment {
        radio = 1

Read more

Add the following typoscript to get the icon for menu, from its page's media files options. = HMENU {
    entryLevel = 1
    expAll = 1
    1 = TMENU
        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