Blog

To change the file link icons form the content element "File Links", (if you are using css_styled_content) by using Typoscript, we have to give the path to our custom folder, where our custom icons...

Read more

While Updating TYPO3 from version 6.2 to 7.6, I got the following error message.

Calculated absolute path to tslib directory does not exist.

Something in the main file, folder and link structure...

Read more

To use the locallang values in our extension controller, use the following function 

TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('your.label.key','YourExtensionName', ...

Read more

The alternative to "setReturnRawQueryResult" function, that returns array instead of QueryResultInterface is

$query->execute(TRUE);

Example

public function myFucntion() {

     $query =...

Read more

Below typoscript, adds news metadata to page, like this

<meta name="keywords" content="newskeyword1,keyword2" />

[globalVar = TSFE:id = {$news_detail_pid}]

#Remove default metadata and add...

Read more

To create typolinks in a schedular or CommandController, first we need to initialize the TSFE. Later we can use typoLink_URL() to generate the links.

Below are the steps.

1. Initialize the TSFE

...

Read more

Here I am extending the table pages to have the checkbox "No index" on every page.

On ext_tables.sql of custom extension,

CREATE TABLE pages (

   no_index tinyint(4) DEFAULT '0' NOT NULL

);

...

Read more

In some cases, we need to show only the records selected in plugin flex form.

In controller, if we get those values, it will be comma separated and they are in the selected order.

But if we run...

Read more

Below is the typoscript, that wraps the content element by <div class="content"></div> only if specified section frame is selected.

tt_content.stdWrap.wrap = <div class="content">|</div>
tt_content.st...

Read more

This example shows how we can get the result of user function to an object. Write the following typoscript to call the user function

Including the file.


includeLibs.getpagecontent =...

Read more
Categories