typoscript,fluid,extbase,typo3-6.2.x , Typoscript USER / USER_INT objects in powermail input fields

Typoscript USER / USER_INT objects in powermail input fields


Tag: typoscript,fluid,extbase,typo3-6.2.x

I've a custom extension to render a value from database. I want to prefill the returned value of the extension using powermail prefill typoscript.

But when I add the plugin as userfunction, then it will display strange output in frontend.

See my typoscript code below;

lib.companyname = USER_INT
lib.companyname {
        userFunc = tx_extbase_core_bootstrap->run     
        extensionName = ExtPowermail
        pluginName = Extpowermail
        vendorName = TYPO3
        controller = Extpowermail 
        action = list  

plugin.tx_powermail.settings.setup {
  prefill {
    company < lib.companyname

Here "company" is an input type text field in powermail. In frontend the output of the above code render like this;


I've changed USER_INT to USER and there is no change in the output. If anybody knows the solution, please help.


I'm just starting out with Typo3 myself, but I needed that functionality also. I had the same problem, it started working for me when I used this:

plugin.tx_powermail.settings.setup.prefill {
   company = USER
   company {
       userFunc = tx_extbase_core_bootstrap->run     
       extensionName = ExtPowermail
       pluginName = Extpowermail
       vendorName = TYPO3
       switchableControllerActions.Extpowermail.1 = list

The output you are getting is some reference to the cache, as far as I know. When using switchableControllerActions it seems to stop caching the content, so you get the regular output.


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,...

Vertical centering of image in fluid nav bar

I am trying to get a fluid navigation bar done in Dreamweaver, which will also change the size of the logo when changing the viewport. This works and looks perfectly, except that the logo image will not stay vertically centered when it gets smaller. <div class="gridContainer clearfix"> <div id="div1" class="fluid">...

Typo3 - TMENU get Content from Colpos

i have an TMENU, in that Menu I would have the Content from the Subpages in the Menu. On every Page is an Col (colpos=0) with Content. Is it possible to get the Content from there to the Menu? lib.mainmenu = HMENU lib.mainmenu { 1 = TMENU 1 { wrap...

TYPO3 fluid get @attributes

I want to get attributes from an xml feed. If i f:debug the Array in fluid, i can see the attributes as an array with the name @attributes: array(6 items) title => 'Test Title' enclosure => array(1 item) @attributes => array(3 items) url => 'http://www.example.com/test.jpg' (55 chars) length => '83423'...

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 access TCA-fields in the Fluid template for a custom content element

I've created a custom content element called cat_but (category button). I've added TCA and content element wizard without problem. The category button have only one field: sys_category. Exactly one category should be selected. From this, I want to render a link action to a controller using that category as argument....

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...

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....

TYPO3 special menu “browse”

I'm trying to build a browse menu in TYPO3 that should be added to all subpages to navigate trough all submenu pages. That's what I got: temp.prevPage = HMENU temp.prevPage { special = browse special{ items = prev value = 22 prev.fields.title = <img src="fileadmin/dev/pics/prev.gif" title="next page" alt="prev page"/> }...

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.

Typo3 BootStrap 3 navbar (typoscript)

Hi I am new to typoscript and I need help in getting the menu working. The following typoscript will render the Bootstrap navbar, yet the menu is thrown out of the navbar completely without css styles. topnavigation = HMENU topnavigation.wrap ( <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation"> <div class="container"> <div class="navbar-header">...

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...

Display Extbase FileReference with Fluid

In an extbase extension, I have a FileReference Object. It was created with extension_builder originally. From The Model: /** * apprenticeshipDocument * @var \TYPO3\CMS\Extbase\Domain\Model\FileReference */ protected $apprenticeshipDocument = NULL; etc. In the frontend, <f:debug>{institution.apprenticeshipDocument}</f:debug> gives me this: First Thing: originalResource is missing. Second: When calling {institution.apprenticeshipDocument.uidLocal} directly, the value is...

How to use typoscript object in fluid template as if condition

I have a typoscript TEXT object: lib.myid = TEXT lib.myid.value = 1413 And want to use it in a fluid template (for tx_news): <f:for each="{newsItem.categories}" as="category"> <f:if condition="{category.uid} == {lib.myid}"> Category ID is the same as myid </f:if> </f:for> How can I do this?...

Typoscript USER / USER_INT objects in powermail input fields

I've a custom extension to render a value from database. I want to prefill the returned value of the extension using powermail prefill typoscript. But when I add the plugin as userfunction, then it will display strange output in frontend. See my typoscript code below; lib.companyname = USER_INT lib.companyname {...

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...

Fluid Powered TYPO3 FLUX Fluidcontent - No Output in Frontend?

I've made a TYPO3-Installation 6.2.9 with Fluid powered TYPO3 - the first steps with the Pre-configured Distribution "Site" were fine. My Site/Page-Template is installed and I added all the TypoScript stuff. Now I want to use FLUIDCONTENT (FCE) with FLUX. I've added a new Template-File TeaserOne.html and I try to...

Typoscript HMENU drop down is not working,
  • -Tag closes to early

  • drop-down-menu,typo3,typoscript
    Got the following - reduced to a minimum - code: CSS: html { height: 100%; } body { height: 100%; font-size: 1.5em; line-height: 1.5; font-family: Arial, Verdana, Helvetica, sans-serif; } a, a:link, a:active, a:visited { color: #e23427; text-decoration: none; } li { list-style: none; } /**1. Ebene Hauptnavigation**/ ul.topNav {...

    uid of parent page or pid of current page for Typoscript db queries

    I want a list of uids of the current active parent of my menu. I got a solution, which gives me exactly that, however, my solution is really static, as it doesn't take the current active "parent" menu but a fixed value i typed in. Here is my code: lib.dbValues...

    typoscript condition on get parameter

    I'm trying to include separate setup.ts files, based on a "custom" GET parameter, but no matter I give ?custom=1 or not, the code always enters the ELSE clause and I get "bbb" on top of the page. Where am I wrong? [globalVar = GP:custom = 1] <INCLUDE_TYPOSCRIPT: source="FILE:fileadmin/templates/typoscript/CUSTOM/setup.ts"> page.1 =...

    Fluxfield for internal Link with pagetree

    How can I create a fluxfield to create a link to another page, where the user can chose the page in a pagetree. Something like the Modify Linkfrom the RTE. Is there something? Or how else would I create a field for a internal link? Just an inputfield where the...

    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...

    Remove default html header with typoscript

    I use an own extension which generates the html header and this works fine. Only the default header is still generated, so when we look at the page code there are two htlm headers generated. Even if I use the setting below. Any ideas? page = PAGE page.config { noPageTitle...

    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 =...

    Output nested tags with one single ViewHelper

    I have a TYPO3 project with an extension using Extbase and to implement lazy loading and retina images while maintaining compatibility if javascript is disabled, I need to generate some output like this: <noscript data-src-small="small.jpg" data-src-large="large.jpg" data-width="300" data-height="200"> <img src="small.jpg" width="300" height="200"> </noscript> So I wrote a custom ViewHelper (or...

    Use v:content.render in a Contentelement

    I try to render some Elements from another page via fluid in a Partial and try to use v:content.render. As you can see in the code I want to render 3 elements from the page with the Uid 9. But as soon as I have the v:content.render element in it...

    Typo3 Rich Snippets with typoscript

    I have not been successful to implement rich snippets in my typo3 site. Basically I have tried to wrap the html tag and include meta snippets to no avail but a chain of site errors. page.meta.itemprop.name = name page.meta.itemprop.description = description page.meta.itemprop.image = http://www.example.com/img/01.png The html code is the following...

    Typo3 Neos: How to pass parameter from typoscript using 'TYPO3.Neos:Plugin'?

    i wanted to pass a parameter dynamically via aloha editor, i have select box like this on .yaml properties: events: type: string ui: label: 'Events' reloadIfChanged: TRUE inspector: group: 'document' editor: 'TYPO3.Neos/Inspector/Editors/SelectBoxEditor' editorOptions: dataSourceUri: 'events/list' and on .ts2 file i use this prototype(Festival.Backend:Events) < prototype(TYPO3.Neos:Plugin) { package = 'Festival.Backend' controller...

    Disable TemplaVoila Backend Layout for some sections

    I hope a TemplaVoila Professional can help me with this little challenge. I've a TYPO3 6.2.6 Installation with TemplaVoila 1.9.2. We are now switching over to Fluid and I want to start with one section, a small microsite. How can I disable TemplaVoila BE-Layout and enable the Fluid BE-Layout for...

    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" /> ...

    In a Typoscript HMENU, how to force the language for the URL

    I have a multi-language, multi-site, multi-domain TYPO3 (4.5) Instance where RealURL keeps me busy. In some sub-sites, I just can't get it to create the right URLs for Languages 1 and 2. It will result in the pattern www.language-2-domain.com/language-1-pagetitle Instead of keeping on fiddling with realurl_conf, I would like to...

    TYPO3 6.2 scaling img using gifbuilder did't work

    After upgrading TYPO3 from version 6.2.9 to 6.2.10 the scaling images using GIFBUILDER didn't work. When I'm testing image processing in Instal Tool everything looks ok, byt when I want to change img using GIFBUILDER scaling img didn't work. My actual configuration looks like this: 'GFX' => array( 'colorspace' =>...

    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...

    CSS right sidebar fixed width and left contant fluid

    I'm trying to add a sidebar which have a fixed width. But the content div should be fluid. Here is my code: .page-main{ padding: 10px; height: auto; overflow: hidden; } .page-content{ background-color: red; width: auto; overflow: hidden; } .page-side { float: right; width: 200px; background-color: green; } <div class="page-main"> <div...

    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 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...

    Access tx_fed_page_flexform in fluidtemplate

    This question is related to Access fluidpage configuration in template. I try the same as in the question above. But as flux:flexformis outdated and replaced with flux:form there may be some changes I'm not aware of. With the following code I try to access the flex:form.fields from the menu-items: <v:page.menu...

    Typo3 DCE Images

    I'll try to design my own content elements with DCE (Dynamic Content Elements). The problem I have a problem when I try to work with images. I created a select field for images which works fine. In the fluid template I have the following code for handling the image: <f:image...

    Edit headlines (header level) FLUID Powered TYPO3 fluidcontent_core instead of CSS_Styled_Content

    How can I edit my Header info fluidcontent_core Extension. I use it instead of the 'normal' CSS_Styled_Content with FLUIDPAGES 3.1.2, FLUX 7.1.2, FLUIDCONTENT 4.1.2, FLUIDCONTENT_CORE 4.1.1 and VHS 2.1.4 - the latest versions of FLuidTYPO3. For example, I need an additional <div class="text-center">|</div> for my <h1> Header, like this <div...

    Get String of n:1 Domain Model Object

    I made an extension for typo3 with the extension builder. In there I have a relation called "sex" that refers to another model object from type n:1 (of course, everyone can only just have one sex). Now I want to present that in a table. When I use {person.sex} I...

    typoscript lib set variable for controller

    to modify my breadcrumbs on certain pages, I added a plugin which is supposed to add something to my breadcrumb values. But I need a certain get variable value and it just doesn't work: lib.tippBreadcrumbs = USER_INT lib.tippBreadcrumbs{ vendorName = Package userFunc = tx_extbase_core_bootstrap->run extensionName = SomethingArticles pluginName = ArticleBreadcrumbs...

    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...

    TYPO3: How to create a Dropdown in own Extension

    I'm creating a filter in my extension, and i need there a dropdown from the entries of a table in the extension (in my example the colors table). I tried this: <select class="option-set clearfix form-control" data-filter-group="farben"> <option value="*" data-filter-value="" class="selected">Alle Farben</option> <f:for each="{steines}" as="steine"> <option value="#filter-farben-{steine.farbe.name}" data-filter-value=".{steine.farbe.name}">{steine.farbe.name}</option> </f:for> </select> The...

    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 =...

    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...

    typo3 news realurl overwriteDemand

    I am using Typo3 7.1 + Fluid(Latest Integrated with 7.1) and I am very new to this latest version. Added News plugin(tx_news) and using Categories. Categories are left menu and located in News List page as well as News Detail page. I am getting url look like this, http://domain.com/de/sample/?tx_news_pi1%5BoverwriteDemand%5D%5Bcategories%5D=5&cHash=8aa8fd1fb7a5e47165a4e4acca3125e9 I...

    Can I also slide content with Fluid Powered TYPO3 (fed flux fluidcontent)

    I try to slide content elements at my TYPO3 Backend (v6.2) with Fluid Powered TYPO3. So I don't have CSS_Styled_content included. http://wiki.typo3.org/Content_Slide Example: 10 < styles.content.getRight 10.slide = -1 Especially I'd like to slide my content from the colPos=0 'Slider' to the Pages below. Is this possible with FLUID /...

    Display category and its content in TYPO3

    I am using TYPO3 6.2.9 CMS.I make category and assigned to page.But I don't know how to display the category when i am showing the page i want all the category assign to that page must display then after clicking that category the content which i have assign to that...

    How to get page categories in Typoscript (and use with tx_news)

    I would like to read out a page's system categories for further use with tx_news (to display news that have the same categories as the page - as tx_news is using system categories). I was looking for a native solution, hopefully via getText, something like: plugin.tx_news.settings.categories.data = page:categories but that...