FAQ Database Discussion Community


Language detection not working in Typo3 6.2.12

typo3,typoscript,typo3-6.2.x,language-detection
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...

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

typo3,typoscript,realurl,typo3-4.5
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: How to create a Dropdown in own Extension

typo3,typoscript
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 - TMENU get Content from Colpos

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

How to use typoscript object in fluid template as if condition

typo3,typoscript,fluid,typo3-6.2.x
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 lib set variable for controller

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

TYPO3 Solr extension and facets

solr,typo3,typoscript,typo3-6.2.x
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...

Typo3 Rich Snippets with typoscript

typo3,typoscript,typo3-6.2.x,rich-snippets,google-rich-snippets
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'?

typo3,typoscript,typo3-flow,typo3-neos
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...

How to disable cache for a image carousel in TYPO3

caching,typo3,typoscript,extbase,typo3-6.2.x
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...

Display category and its content in TYPO3

typo3,typoscript,typo3-6.2.x
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...

Hide typo3 content elements for specific user(groups)

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

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

    TYPO3 6.2 scaling img using gifbuilder did't work

    imagemagick,typo3,typoscript,yag
    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' =>...

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

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

    Typoscript CASE & default value

    typo3,typoscript
    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 BootStrap 3 navbar (typoscript)

    twitter-bootstrap-3,typo3,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">...

    Remove default html header with typoscript

    typo3,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 condition on get parameter

    parameters,get,condition,typoscript
    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 =...

    TYPO3 special menu “browse”

    menu,typo3,typoscript
    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"/> }...

    Typoscript USER / USER_INT objects in powermail input fields

    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 condition for detecting mobile device

    typo3,typoscript,typo3-7.x
    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...

    Typoscript add class to the first element using stdWrap

    typo3,typoscript,typo3-6.2.x
    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 =...

    typo3 templavoila check current language

    typo3,typoscript,templavoila
    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 =...

    TYPO3: Pass current menu page uid as parameter to userFunc

    function,menu,parameters,user,typoscript
    How can I pass menu pages ids to a custom user function? I need it so that I can change some page links which are not valid in TYPO3. They will be parsed in another application. lib.test = HMENU lib.test { ... 1 = TMENU 1 { NO = 1...

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

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

    Get String of n:1 Domain Model Object

    typo3,typoscript,extbase,typo3-6.2.x,typo3-6.1.x
    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...