typo3,backend,extbase,typo3-6.2.x,typo3-extensions , How can I render preview of FE plugin diplayed in Page module

How can I render preview of FE plugin diplayed in Page module


Tag: typo3,backend,extbase,typo3-6.2.x,typo3-extensions

I have developed TYPO3 (6.2) extensions with some FE plugins.

I need to change informations about plugin, which is displayed in the backend on page view.

Now only Title and name of plugin is displayed ...

I have used flexforms for configure the plugin and I would like to show some of configuration on the plugin "placeholder" in the backend.

I remember, I read some documentation how to do it a few years ago, but I can't find it anymore...

Does anyone know the right way to do it?


If I understood well you are asking for ContentElement preview. You need to use cms/layout/class.tx_cms_layout.php hook for this, here's quite nice gist

just two additions:

  1. don't use t3lib_extMgm class it's removed since 7.x you can register this hook just with:

    =  'EXT:your_ext/Classes/Hooks/PageLayoutView.php:\Vendor\YourExt\Hooks\PageLayoutView';
  2. Depending on how did you register the plugin (didn't mention) you can also need to check the $row['list_type'] as your $row['CType'] may be just generic list.

Sample class with value from FlexForm field


namespace Vendor\YourExt\Hooks;

class PageLayoutView implements \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface {

    public function preProcess(\TYPO3\CMS\Backend\View\PageLayoutView &$parentObject, &$drawItem, &$headerContent, &$itemContent, array &$row) {
        if ($row['CType'] == 'list' && $row['list_type'] == 'yourext_yourplugin') {

            $drawItem = false;

            $linkStart = '<a href="#" onclick="window.location.href=\'../../../alt_doc.php?returnUrl=%2Ftypo3%2Fsysext%2Fcms%2Flayout%2Fdb_layout.php%3Fid%3D' . $row['pid'] . '&amp;edit[tt_content][' . $row['uid'] . ']=edit\'; return false;" title="Edit">';
            $linkEnd = '</a>';

            $headerContent = 
                $linkStart . 
                "<strong>Selected slides</strong>" .

            $ffXml = \TYPO3\CMS\Core\Utility\GeneralUtility::xml2array($row['pi_flexform']);

            $itemContent =
                $linkStart .
                $ffXml['data']['sDEF']['lDEF']['settings.myFlexField']['vDEF'] .


What is a full-stack developer?

If I understand a full stack developer is someone who is developing both the front-end and back-end part of a program. What is the goal of this? Why is it good? I guess in small projects like a small mobile app or so it is OK that one developer makes...

Where are TYPO3 constants from constant editor stored?

In Typo3 Backend -> Template -> Constants there is a constant editor. Where does TYPO3 saving the constants? Tried an fgrep -ri for an existing pattern, in case of saving to filesystem - no matches. Tried an MySQL search for an existing pattern, in case of saving to DB -...

Hide typo3 content elements for specific user(groups)

I want to "hide/deactivate" the table element for specific users/usergroups in the typo3 BE. Or to be more clear: I want to ONLY allow it to ONE specific user (admin). How can i do that? NOTE: At the moment the table element is deactivated in the global TS-config via tt_content...

Routes for TYPO3 Neos plugin

I'm trying to define routes for my plugin. Everything is working as it should, because I got pretty URL on output, but unfortunately while I'm trying to access it I get an 404 error with message: #1303209195: No controller could be resolved which would match your request. Package key: "",...

Typoscript CASE & default value

See below for my typoscript code typolink.parameter.cObject = CASE typolink.parameter.cObject { key.field = pid 3725 = TEXT 3725.value = 5574 5515 = TEXT 5515.value = 5574 3748 = TEXT 3748.value = 5574 default = TEXT default.data = pid } What I am trying to implement is , In a CASE...

File url [tmp_name] after upload via Typo3 backend

I'm building a typo3 extension and in a backend plugin I want to build a image upload form. I seem not to get the correct $_Files url. The following fluid form is used: <f:form action="customerSliderImages" id="customerSliderImages"> <f:form.upload name="custSlider[sliderimage]" /> <f:form.submit value="Upload" /> </f:form> I want to have the [name] and...

How can I render preview of FE plugin diplayed in Page module

I have developed TYPO3 (6.2) extensions with some FE plugins. I need to change informations about plugin, which is displayed in the backend on page view. Now only Title and name of plugin is displayed ... I have used flexforms for configure the plugin and I would like to show...

How to create a blog on nodejs(with express.js)?

guys. Please, help me. How to create a blog on NodeJS namely on ExpressJS (with basic funct. - delete/add/remove posts and comments, standard auth) ? I did searched, and... I find a tutorials, but not a full. And blog need for practic with nodejs, its a test, and little dream...

Forbid user to login from two or more Android devices at the same time

Let's say I have Android app with user login functionality and PHP based back-end server. When user fills required fields (name and e-mail for example) with according information and press "login" button, request is being made to back-end server. Now let's say user is successfully logged in. My question would...

How to get filename in Typo3 solr extension with FAL and own Extbase extension

Before FAL, I can get the filename of an image from my own Extbase extension in the solr config file "typo3/ext/solr/Configuration/TypoScript/Solr/setup.txt" via index { queue { tx_myextension = 1 tx_myextension { fields { ... myimage_stringS = articleimage ... } } } } Where "articleimage" was a database field with the...

How to put unicode chars in javascript

I use BaaS for my Front-End. It allows me to upload a javascript file with my backend logic. I can use it via REST API on client side. Among other services I've implemented a localization service. Strings are predefined like this: var locals = { "EN": { "1": "Home", "2":...

How does my frontend usergroup list get lost between Extbase action controller and Fluid template partial in TYPO3 6.2?

I'm using TYPO3 CMS 6.2.12 and Extension Builder 6.2.0 to model a Report class and build an extension to manage it. One of the domain driven design requirements is that a report author be a logged-in front end user. A second requirement is that the author choose a single group...

How to disable cache for a image carousel in TYPO3

My TYPO3 extension has a lib that generates random 5 images from the total stock, for example out of the 100 images. This is done randomly every time the page is loaded. Only default the TYPO3 cache is enabled so every time the same 5 images are showed. As the...

How to get typo3 settings in the utility files?

plugin.tx_xxx { setting { storagePid = 23 } } I want this typo3 settings in utility file. Please help me....

Show Typo3 FlexForm checkbox items inline

Would it be possible to show the checkboxes inline, so behind each other with a FlexForm? I'm now using the following code, but this shows every setting in a vertical list. <settings.ownchoice_for_sale> <TCEforms> <label>For sale</label> <config> <type>check</type> </config> </TCEforms> </settings.ownchoice_for_sale> <settings.ownchoice_reserved> <TCEforms> <label>Reserved</label> <config> <type>check</type> </config>...

Run Alfresco Java code as Administrator

I'm trying to implement an action in which I will add permissions to all parent nodes. However, I need to run as admin to manage the permissions. Currently my code looks like this: permissionService = serviceRegistry.getPermissionService(); //Read the username of the current user final String loggedInUser = authenticationService.getCurrentUserName(); ChildAssociationRef childAssociationRef...

tt_news single view with static news_id

I am using Typo3 Version 6.2 with the plugin tt_news. All I want to do is: Have a simple page on my website On that page I want to have a tt_news single view the news_id of this view should be static (set by me) and NOT by GET variables...

Replying to a request in ruby on rails (Server side)

I am making a webb app using rails. At one point I am sending a request to the server to get some information in an array. I can handle the request on the server side, using routing and controllers properly. But once the server has done its math, I don't...

Call function on Server from iOS app - Objective C

If you are familiar with Parse.com's Javascript SDK, this is what I am trying to do for my own server for my iOS app (Objective-c). I want to be able to send some a string to the function that is on my server, have the server run its function and...

Clean way to switch between typo3 fluid page and action link

Is there a more clean way to switch between a page or a action link in fluid based on a var? Now i used the if then statement but this increases a lot of double code lines. See example: <f:if condition="{var}"> <f:then> <f:link.page pageUid="{PageId}"> // a lot of code lines...

Typo3 6.2: “Could not find a suitable type converter for ”String“ ” exeption after update

Typo3 was from a very old version updated to Typo3 6.2. The most things are working now, but I have one own written extension that give me the following error: Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1297759968: Exception while property mapping at property path "":Could not find a suitable...

Typo3 6.2 fluid pagination not working as expected

My typo3 6.2(Upgraded from Typo3 4.5) fluid paginate displays all the items instead of 5 items. My Repository Method : public function getRandomLocation($iLimit) { $query = $this->createQuery(); $result = $query->statement("Select * FROM tx_sfel_domain_model_ttblocationsproduktegruppen WHERE hidden = 0 AND deleted = 0 AND logo != '' ORDER BY uid LIMIT 0,...

How to get Query object to felogin repository?

i need Query object of TYPO3\CMS\Felogin\Controller\FrontendLoginController in my extention repository so i can create my own query conditions.

TYPO3 extbase create url in repository (not controller)

There are good tutorials on how to create URL's in the controllers like this one. Examples are: $this->uriBuilder->reset()->setTargetPageUid($page_uid)->setCreateAbsoluteUri(TRUE)->build(); $this->controllerContext->getUriBuilder()->reset()->setTargetPageUid($page_uid)->setArguments(array('person'=>$person->getUid())->buildFrontendUri(); In works from the controller. But I cannot do the same work in a repository. Error log say that reset() in first example and getUriBuilder in second example is called on...

Typo3 extbase database query

I have an extbase database query like below. $query = $this->createQuery(); $result = $query->statement("Select * FROM table1 WHERE hidden = 0 AND deleted = 0 AND (".$PublicationYears.") AND logo != '' ORDER BY uid ASC LIMIT 0, ".$iLimit." ")->execute(); return $result; $PublicationYears = "ttra = '12' or ttra = '13'...

How to connect from your iOS app to a backend server? how to read,modify and fetch data to backend server?

I am new in developing iOS application. I like to learn communication between my app and an specific back-end server(which is written in ruby). I would like to learn how to read, fetch and modify data on back-end server? I do not have any idea that from where I should...

Architecture for cross platform messaging app

i am looking to build a mobile messaging app firstly in android and then ios later, and am struggling with the backend architecture and need some advice on what would be best in my circumstance. Basically i am used to just developing apps through a basic web server and using...

Can't login to Magento admin panel

For test and development, I duplicated our Magento shop to a sub-domain. mysql -u root -p -e "USE bitnami_magento; UPDATE core_config_data SET value ='http://subdomain.site.com/' WHERE core_config_data.path = 'web/unsecure/base_url'; UPDATE core_config_data SET value ='https://subdomain.site.com/' WHERE core_config_data.path = 'web/secure/base_url'; Everything works, but not the admin Login. On the login page we get...

Is it possible to set by fluid a argument that the typo3 backend uses as input

In the typo3 template I'm using the following line to get the last 5 added items from the backend and this works. <f:cObject typoscriptObjectPath="lib.lastaddeditmes" /> Only the number of item I want to have it flexible and set in the fluid template. So for example like below where the qty...

typo3 flow persist updated relation

I have an issue TYPO3 Flow updating my relations. Am I wrong, that Flow should update changed relations automatically, so I don't have to update the related entities with the respective repository? Example 1: I have a model "Project" with multiple "Job" childs on attribute "jobs". If I do: $project->setJobs($collectionOfJobs);...

TYPO3 Extbase build own Sitemap

There are a lot of sitemap Generators for TYPO3 in the TER available. But none of them can handle Sites created by Extbase, which are not shown in the TYPO3 page tree. Edit Thanks to biesior, detailed informations: Unconventional I switch in TypoScript the GET Parameter for my Extbase extension[globalVar...

Fluid image with extra data for cycle2

I'm using cycle2 for a image slider, for adding a title extra data is needed in the image url, so I want to generate the following url: <img src="foto.jpg" data-cycle-title="Title" data-cycle-desc="Subtitle" /> I tried the following but this generates an error? <f:image src="foto.jpg" data-cycle-title="Title" data-cycle-desc="Subtitle" /> ...

Boltdb-key-Value Data Store purely in Go

Bolt obtains a file lock on the data file so multiple processes cannot open the same database at the same time. Opening an already open Bolt database will cause it to hang until the other process closes it. As this is the case,is there any connection pooling concept like various...

Language detection not working in Typo3 6.2.12

I've a website which has 2 languages: German (de) as default and English (en) as translated. I am trying to implement language detection functionality in the website using the extension "rlmp_language_detection" version 7.0.0. What I want to achieve is, for the countries Austria (at), Switzerland (ch) and Germany (de), the...

htaccess and authentication for multiple domains

I am running a mutlisite TYPO3-Site. For the pre-live process, I want to add a htaccess with a htpasswd for 3 / 4 sites. How can I configure the htaccess-file to trigger the authentication only for specific urls? For example: http://example.org shouldn't get a password-protection, while http://example2.org should. Both sites...

typo3 templavoila check current language

Hi i have 4 languages in my typo. Here is my main configuration for them: #LANGS config.linkVars=L config.defaultGetVars.L = 0 config.sys_language_overlay = hideNonTranslated [globalVar = GP:L = 3] config.sys_language_uid = 3 config.language = en config.locale_all = en_EN config.htmlTag_langKey = en plugin.tx_indexedsearch._DEFAULT_PI_VARS.lang = 3 [globalVar = GP:L = 2] config.sys_language_uid =...

How to end typo3 realurl with .html

I'm using the realurl extension to make nice urls, only they all end with the / char. How can I let them end like a .html file? /path/to/page/ Would like to have: /path/to/page.html...

Copy typo3 to a new domain

I try to copy a typo3 installtion to a new directory (and new domain), but got some problems I can't figure out where they come from. What I have done is: I copied all the files to the new directory (New domain is mapped to this directory). I copied the...

backend not being reset by matplotlibrc.py

I'm having trouble getting matplotlib plots to appear in front of my other windows - this is apparently a macosx backend problem. However, after making the following changes in ~/.matplotlib/matplotlibrc.py: #backend : macosx backend : TkAgg I run this command in python import matplotlib print matplotlib.rcParams['backend'] and it returns: MacOSX...

How to assign variable in fluid?

I want viewhelper that can be helpful to assign variable in fluid, I dont want variable to be passed from controller.

Using FAL in Extbase correctly

Domain model class Image extends AbstractContent { /** * @var \TYPO3\CMS\Extbase\Domain\Model\FileReference */ protected $file; /** * Gets the image file * * @return \TYPO3\CMS\Extbase\Domain\Model\FileReference */ public function getFile() { return $this->file; } /** * Sets the image file * * @param \TYPO3\CMS\Extbase\Domain\Model\FileReference $file * @return void */ public function setFile($file)...

How to use Hook “processDatamap_postProcFieldArray” in TYPO3 6.x

Use case: When saving an object (in backend, maybe in frontend too later) I want to manipulate values before saving to database. Problem: The file seems to get included (shows an error on save if I choose a wrong file path) but the function does not seem to be executed...

How to handle backend (laravel) and frontend (angular) dependencies in different git repos

We're building our first webproject with laravel and angularjs and trying to figure out how to setup our development environment. Our current approach looks like this: Backend git repo with laravel file structure Frontend git repo with angularjs file structure So some of us could work on the backend/frontend without...

TYPO3-Upgrade 4.5 to 6.2: namespaces

I'm updating an old TYPO3 to latest verison 6.2.12. As I do so I replace deprecated classes with the proper namespaces. E.g. t3lib_div to \TYPO3\CMS\Core\Utility\GeneralUtility or t3lib_extmgm to \TYPO3\CMS\Core\Utility\ExtensionManagementUtility. But I cant find the proper namespaced class for t3lib_svbase. Any suggestions? . And I absolutely have no clue what I...

google sitemap for tx_news records with dd_googlesitemap_dmf (or alternative)

I try to let typo3 generate a sitemap for all the news records. For that I tried the dd_googlesitemap_dmf extention. The dd_googlesitemap works (it creates a sitemap for all the typo3 pages - but not for extensions). I filled in the basic infos into the configuration and called the url...

TYPO3 Solr extension and facets

I have a small question about TYPO3 solr facets.At present in my website I have 6 different indexing configuration available. Two of them are custom extension table's and one is tt_news and rest of the 3 are pages table with some custom condition. I managed to add this using additionalWhereClause...

Replace URLs in Typo3 DB

So I have a Site created with Typo3. I also have a domain which is linked to the folder of the Typo3 Installation. www.example.org I created a Subdomain and linked it to the same folder and used the Main Domain for something else. But now everything on the Subdomain still...

Typoscript add class to the first element using stdWrap

I have a custom requirement to display an image slider using TypoScript. The images are taken from default tt_content image content element. I've added the following TypoScript code to implement this; lib.homeslider = COA lib.homeslider { 10 = CONTENT 10 { table = tt_content select { where = colPos =...

userfunc condition for detecting mobile device

Since TYPO3 7 the condition 'device' and 'useragent' are deprecated. No I'm looking for a userFunc to use as a condition for detecting mobile devices. My aim is to hide or to show some special pages on mobile devices. I used the extension 'contexts_wurfl' for a while but I guess...