Menu
  • HOME
  • TAGS

htaccess and authentication for multiple domains

.htaccess,typo3

This will make it so authorisation unless the host ends in example2.com # set the "require_auth" var if Host ends with "example2.com" SetEnvIfNoCase Host example2\.com$ require_auth=true # Auth stuff AuthUserFile /var/www/htpasswd AuthName "Password Protected" AuthType Basic # Setup a deny/allow Order Deny,Allow # Deny from everyone Deny from all #except...

Typo3 DCE Images

image,typo3,fluid,dce

Got it. With the hint form vijay rami I found out, that you have to render images in dce like this: <f:for each="{dce:fal(field:'image', contentObject:contentObject)}" as="fileReference" iteration="iterator"> <f:if condition="{iterator.isFirst}"> <f:image src="{fileReference.uid}" alt="" treatIdAsReference="1" /> </f:if> </f:for> Of course you have to edit in the first line "field:'image'" to your name....

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

header,typo3,fluid,fedext

the templates of content_core are all in the Private dir of the ext. itself. If you take a look at them, you will see that the headers are rendered from a comma separated string set in the setup.ts and deflated as an array. You can make your ow array or...

typoscript lib set variable for controller

typo3,typoscript

I did not know the answer, but another smart person did: http://lists.typo3.org/pipermail/typo3-project-typo3v4mvc/2011-October/010591.html learned something myself...

Typo3 extbase database query

typo3,extbase,typo3-6.2.x,queryinterface

first of all you dont need this $query->matching( $query->logicalAnd( $query->equals('deleted', 0), $query->equals('hidden', 0) )); disable fields are included in query from default according to setting of table in ext_tables.php multiple matching will not work cause your third matching $query->matching($query->logicalNot( $query->equals('logo', '') )); is overwriting the matching() used before it logicalAnd...

why my frontend empty with automaketemplate after migration

typo3,typo3-6.1.x

After Migration Follow this step: 1) Upgrade all the compatible extension and disable those extension which is not compatible. 2) Check the typoscript , some of typoscript has been removed in 6.2 version. need to removed or need to replace with latest. 3) Check the install tool > upgrade wizard....

Display Extbase FileReference with Fluid

typo3,fluid,extbase,typo3-6.2.x

Files and file references behave a bit different in fluid that usual: They are lazy-loaded, so the originalResource (Extbase file reference) and originalFile (Core file reference) values are NULL before the first access to them. But you can just access them as usual. The value uidLocal of an extbase file...

Replace URLs in Typo3 DB

mysql,database,typo3

There are two (three with realurl) places where you need to look if changing the domain of a TYPO3 site, if everything is done by the book and noone hardcoded the domain all over the place or something. Usually you do not need to work in the database directly. After...

Typo3 Rich Snippets with typoscript

typo3,typoscript,typo3-6.2.x,rich-snippets,google-rich-snippets

This worked out for me. config.htmlTag_stdWrap { setContentToCurrent = 1 cObject = COA cObject { 1 = TEXT 1.value = itemscope 1.noTrimWrap = | | | 2 = TEXT 2.value = itemtype="http://schema.org/Organization" 2.noTrimWrap = | | | 3 = TEXT 3.value = lang="en" wrap = <html | > } }...

TYPO3 6.2 scaling img using gifbuilder did't work

imagemagick,typo3,typoscript,yag

Probably this issue was posted on forge https://forge.typo3.org/issues/65378. If so, I think you should add your comments to the this thread. This will speed up reaction of TYPO3 team....

Copy typo3 to a new domain

typo3,typo3-6.2.x

empty the typo3temp folder did the trick.

TYPO3 tt_content structure: t3_origuid vs l18n_parent

typo3,typo3-6.2.x

Those fields can have different values. t3_origuid is a generic field pointing to a record from which the current one was derived in some way. For example by copying or localizing it. Here is some documentation for it. The field l18n_parent is reserved for localization purposes....

Clean way to switch between typo3 fluid page and action link

typo3,fluid

You can extract the code within the links into a partial. For this, first create a partial template. Inside an Extbase extension, they are placed in Resources/Private/Partials by convention (you can change this by using the setPartialsRootPath() method on the template object, but usually that shouldn't be necessary). # Resources/Private/Partials/LinkContent.html...

How to end typo3 realurl with .html

typo3,realurl

In your realurl configuration file (usually typo3conf/realurl_conf.php1) there is a section fileName. In it there is a key defaultToHTMLsuffixOnPrev. Set it's value to 1. Should look somehow like this afterwards (generated by realurl autoconfig): 'fileName' => array( 'defaultToHTMLsuffixOnPrev' => 1, // <-- Important part 'acceptHTMLsuffix' => 1, 'index' => array(...

TYPO3 extbase create url in repository (not controller)

typo3,extbase

First of all, you shouldn't do this. For creating URIs in Extbase, you need access to the current controller context, because there are several factors that go into creating an URI (currently called controller action, current host name, selected language, ...). If you would create URIs within your repository (i.e....

Typoscript CASE & default value

typo3,typoscript

Use default.data = field:pid instead of default.data = pid. TYPO3 needs to know where to look for pid, it could be a request parameter, register, configuration setting and so on as well.

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

php,typo3,extbase,typo3-6.2.x

Solved: in my ext_localconf.php there was just a '/' missing inside the namespace ... $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = 'EXT:navolspmanager/Classes/Hooks/GetGeoCodesHook.php:\NachVORNE\Navolspmanager\Hooks\GetGeoCodesHook'; Improvements: When updating one field according to other user input we should use the 'processDatamap_postProcessFieldArray' function. That way trim, date and number stuff etc is already done at the moment we grep the...

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

typo3,fluid,extbase,typo3-6.2.x,typo3-extensions

Your variables are not passed to the partial, so {groups} is not a variable inside your Partial. You can specify the variables you want to use in the partial by giving the attribute arguments on your <f:render.partial> like in your case: <f:render partial="Report/FormFields" arguments="{groups : groups}" /> Since TYPO3 4.6...

TYPO3 additional url rewrite for a plugin

.htaccess,mod-rewrite,url-rewriting,typo3

Thank to the Fixus I was on a right track again... Forget about the .htaccess! RealUrl can do it all! Answer to my question is to use RealUrl hooks: For my example: function user_encodeSpURL_postProc(&$params, &$ref) { $params['URL'] = str_replace('zimmer-details/rooms/', 'room/', $params['URL']); } function user_decodeSpURL_preProc(&$params, &$ref) { $params['URL'] = str_replace('room/', 'zimmer-details/rooms/',...

Typo3 - TMENU get Content from Colpos

typo3,typoscript

Here is my Solution lib.mainmenu = HMENU lib.mainmenu { 1 = TMENU 1 { wrap = <ul id="mainmenu">|</ul> expAll = 1 NO { wrapItemAndSub = <li>|</div></li> ATagParams = class="drop" } submenuObjSuffixes = a || b || c || d || e } 2a < .1 2a { wrap = <div...

How can I use an injected object in the constructor?

typo3,extbase

To achieve this, I can use so-called constructor injection. The ObjectManagerInterface is defined as an argument of the constructor and then automatically injected by Extbase: /** * @var \TYPO3\CMS\Extbase\Object\ObjectManagerInterface */ protected $objectManager; public function __construct(\TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager) { $this->objectManager = $objectManager; $this->standaloneView = $this->objectManager->get('TYPO3\CMS\Fluid\View\StandaloneView');...

Output nested tags with one single ViewHelper

typo3,fluid,view-helpers

The easiest way to achieve what you want is to use a partial. It would look like this: {namespace x=Yourcompany\Yourproduct\ViewHelpers} <f:comment> Parameters: * src: src of the image * width: Width of the image </f:comment> <x:noscript src="{src}" width="{width}"> <f:image src="{src}" width="{width}" /> </x:noscript> You can use it like this: <f:render...

PHP errors parsing Realurl config file

php,typo3

Use this instead <?PHP $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'] = array( '_DEFAULT' => array( ), ); ?> In newer version there are some problems with $TYPO3_CONF_VARS vs $GLOBALS['TYPO3_CONF_VARS'] the last one works always....

google sitemap for tx_news records with dd_googlesitemap_dmf (or alternative)

typo3,sitemap,typo3-6.2.x

I had to downgrade dd_googlesitemap (using 1.2.0 now) to get dd_googlesitemap_dmf to work

TYPO3: How to create a Dropdown in own Extension

typo3,typoscript

Like you can see my and derhansen small discussion the problem is in your collection. If you will pass in collection: Red, Blue, Blue, Blue, Yellow, Yellow then your loop will display every position from collection. The same thing will be with select viewhelper The thing you should is to...

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

typo3,fluid

You can't do that in the view, instead you can make a copy of lib.lastaddeditmes in TypoScript and then use it in other place like: lib.lastaddeditmesOnlyThree < lib.lastaddeditmes lib.lastaddeditmesOnlyThree.someSetting.items = 3 and in view: <f:cObject typoscriptObjectPath="lib.lastaddeditmesOnlyThree" /> Remember that TypoScript is just a configuration syntax (not programming language) so it...

Use v:content.render in a Contentelement

typo3,fluid,typo3-6.2.x

I found a solution that works: <v:variable.set name="contentElements" value="{v:content.get(column:'0', limit:'3', pageUid:'9', render:'FALSE')}" /> <f:for each="{contentElements}" as="contentElement" iteration="footerIteration"> <v:content.render contentUids="{0:contentElement.uid}" /> <f:format.html>{contentElement.bodytext}</f:format.html> </f:for> ...

Relationships Typo3

typo3,typo3-flow,typo3-neos

I guess that is here to get you started: http://docs.typo3.org/flow/TYPO3FlowDocumentation/TheDefinitiveGuide/PartII/Modeling.html All relationship in TYPO3 Flow is done in the mvc model and it uses various design patterns to make it easy for the programmer. So in your case the best way would be not to even touch the database by...

CKEditor remove classes from html tags in TYPO3

ckeditor,typo3

probably this is defined in the typoscript of the ext. have a look at the TS files of the extension itself, you will have a greater inside of the plugin's setting then googling it.

Where are TYPO3 constants from constant editor stored?

typo3,constants

The constants set in the constant editor are stored in TypoScript syntax in the field constants of the table sys_template.

Routes for TYPO3 Neos plugin

typo3,typo3-flow,typo3-neos

Ok, I finally figure out what was wrong. I defined my route for plugin with optional params, which somehow was wrongly interpreted by request handler. Correct routes for my plugin should looks as follows: - name: 'Nice urls for my plugin' uriPattern: '{node}/q/{--acme_myplugin-element.object1}/{--acme_myplugin-element.object2}' defaults: '@package': 'TYPO3.Neos' '@controller': 'Frontend\Node' '@action': 'show'...

Fluxfield for internal Link with pagetree

typo3,fluid,typo3-6.2.x,flux

You can use a normal text input, but add a link wizard to it. Looks like this: <flux:field.input name="link" label="Link!" > <flux:wizard.link/> </flux:field.input> To output the link, use one of the ViewHelpers v:(link|uri).typolink from EXT:vhs: <v:link.typolink configuration="{parameter: link}"> Linktext </v:link.typolink> This works for all kinds of links....

How to use HTACCESS to block all visits to a specific subdomain, except from defined IP's [duplicate]

php,apache,.htaccess,typo3

You can use something like this code in your DOCUMENT_ROOT/.htaccess file: RewriteEngine On RewriteCond %{HTTP_HOST} ^(?:www\.)?subdomain\.com$ [NC] RewriteCond ${ipmap:%{REMOTE_ADDR}} !^(127\.0\.0\.1|192\.168\.|10\.|1\.2\.3\.4)$ RewriteRule ^ - [F] ...

TYPO3 Extbase build own Sitemap

typo3,sitemap,extbase

If you use ts for create sitemap you can add any items. http://www.adick.at/2010/06/01/typoscript-xml-sitemap/. MB this will help 20 = CONTENT 20 { table = tx_adprojects_domain_model_project select { orderBy = title ASC languageField = sys_language_uid pidInList = 11,12,13,14,15,30 } renderObj = COA renderObj { stdWrap.wrap = <url>|</url> 5 = TEXT 5...

Custom content element is not rendered in front-end

typo3,typo3-6.2.x

Simple typo: ContentELements -> ContentElements Also bug in TYPO3 that didn't display error message....

How to make a website with two language for front end using TYPO3 v6.2

typo3,typo3-6.2.x

The "List"-Module (on the left) is your friend: chose the list module and afterwards your rootpage in the pagetree (PID = 0). In the content section in the right upper bar you can "create a new record". Chose "Website language" and fill in the wanted properties and values... Afterwards you...

Typo3 Minor Update from 4.5.29 to 4.5.39

typo3,typo3-4.5

You have to replace the folder t3lib, typo3 and the file index.php with the files from the new core, then clear all caches. That should be it. But don't just copy the new folders over, remove them (maybe rename first in case you need to switch back). Leaving them in...

How to render content of parent documentNode in TYPO3 Neos?

typo3,typo3-neos,typoscript2

left = ContentCollection { @override.node = ${q(node).children('left').children().count() == 0 ? q(node).parent().get(0) : node} nodePath = 'left' } Is untested but should work just fine. Note that this only goes one level up. If you need to fallback to more levels this needs to be done a bit differently....

In extbase, how to access item by another value than uid

typo3,extbase,typo3-6.2.x

Yes, when you're using actions with model binding in param it will always look for object by field defined as ID - in our case it's always uid, but remember, that you do not need to bind model automatically, as you can retrive it yourself. Most probably you remember, that...

TYPO3 Solr extension and facets

solr,typo3,typoscript,typo3-6.2.x

I assume that your type-field in the solr index only has 4 values, one for pages, 1 each for the two custom tables, and 1 for news. In order to get 6 facets, you need to have 6 different values in the field the faceting is done on. I'm not...

Typo3 Neos Cannot Load Custom Plugin JS On Backend, Must Refresh To Make It Works

typo3,typo3-flow,typo3-neos

I don't think you should use document ready as this event is only fired once in the backend (unless you refresh the entire be). Instead you should use Neos.PageLoaded. if (typeof document.addEventListener === 'function') { document.addEventListener('Neos.PageLoaded', function(event) { // Do stuff }, false); } You can find documentation here: http://docs.typo3.org/neos/TYPO3NeosDocumentation/IntegratorGuide/InteractionWithTheNeosBackend.html...

Using FAL in Extbase correctly

typo3,extbase,fal

I get the hint in the Slack channel of TYPO3. You just need to set plugin.tx_myext.persistence.updateReferenceIndex = 1 respectively module.tx_myext.persistence.updateReferenceIndex = 1 and the index will be updated. Alternatively you could use \TYPO3\CMS\Core\Database\ReferenceIndex::updateRefIndexTable()....

How to get typo3 settings in the utility files?

php,typo3,fluid,extbase

You can add below line in the your controller. $objectManager = \TYPO3\CMS\Core\UtilityGeneralUtility::makeInstance('Tx_Extbase_Object_ObjectManager'); $configurationManager = $objectManager->get('TYPO3\\CMS\\Extbase\\Configuration\\ConfigurationManager'); $this->setting = $configurationManager->getConfiguration(\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface::CONFIGURATION_TYPE_FULL_TYPOSCRIPT); $this->ts_config = $this->setting['plugin.']['tx_xxxx.']['settings.']['storagePid']; I think...

Access tx_fed_page_flexform in fluidtemplate

typo3,fluid,typo3-6.2.x

Found a solution. To set sectionData use v:variable.set. the as in flux:form.data seems not to work. <v:variable.set name="sectionData" value="{flux:form.data(table:'pages', field:'tx_fed_page_flexform', uid:'{section.uid}')}" /> ...

Show Typo3 FlexForm checkbox items inline

typo3

Flexforms does not support such palette functionality like TCA offers. You can use a multiple value selector to offer all available options in a single field instead of using checkboxes (see: http://docs.typo3.org/typo3cms/TCAReference/Reference/Columns/Select/Index.html#columns-select-examples-multiple). An example of this in your case: <settings.ownchoice> <TCEforms> <label>Own Choice</label> <config> <type>select</type> <items> <numIndex index="0"> <numIndex index="0">For...

typo3 news realurl overwriteDemand

typo3,fluid,realurl

try add 'fixedPostVars' => array( ... '35' => 'newsDetailConfiguration', #change you id page with news detail plugin '79' => 'newsTagConfiguration', # change you id page with news tag plugin if need #'69' => 'newsCategoryConfiguration', # change you id page with news category plugin ), ...

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

typo3,slide,fluid,flux,col

You can do it in just the same way it is done in css_styled_content internally, using a CONTENT object: lib.content_not_cascading_without_default = CONTENT lib.content_not_cascading_without_default { table = tt_content # This enables content sliding. For more possible values # check the docs (linked above) slide = -1 select { # Use the...

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

solr,typo3,extbase,typo3-6.2.x,fal

Solution found: index { queue { tx_myextension = 1 tx_myextension { fields { ... bild_stringS = FILES bild_stringS { references { table=tx_myextension_model_name uid.data = field:uid fieldName=artikelbild } renderObj = TEXT renderObj { stdWrap.data = file:current:publicUrl stdWrap.wrap = | } } } } } } This way I get the URL,...

Typo3: capture default generated css in lib

css,typo3,default

This is because _CSS_DEFAULT_STYLE is a property, not an object. Try this instead: lib.defaultCss = COA lib.defaultCss { 10 = TEXT 10.value < plugin.tx_cssstyledcontent._CSS_DEFAULT_STYLE wrap = <defaultCss><![CDATA[|]]></defaultCss> } page.1 < lib.defaultCss ...

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

typo3,typoscript

I have a workaround that i will use for now (untill i have a better grasp on how to typoscript). I just broke the query condition with a marker: lib.dbValues = CONTENT lib.dbValues { table = pages select { selectFields = uid #pidInList = pid where = pid NOT IN...

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

typo3,typoscript,tx-news

Here's a solution that works in my setup. The editor chooses categories for the page, and gets all news items that belong to the category. temp.categoryUid = CONTENT temp.categoryUid { table = pages select { // dontCheckPid doesn't exist for CONTENT objects, so make it recursive from root page (or...

PHP error “Cannot redeclare class” in extbase-based extension of Typo3 4.7

php,typo3,extbase

In order to have no hassle with autoloading, you need to stick to the Extbase naming convention even if you're not using namespaces: Tx_MyExtension_Controller_ProjectController should be the following file: EXT:my_extension/Classes/Controller/ProjectController.php (Mind the UpperCamelCase extension name which transform to underscores in the directory structure.) If you don't know which 6.2 class...

Typo3 BootStrap 3 navbar (typoscript)

twitter-bootstrap-3,typo3,navbar,typoscript

Biesior, thanks for pipe suggestions, it did set me in the right direction. After a load of research and hacking (not being a coder and alien to typoscript), I managed to get the bootstrap 3 inverse navbar working correctly with in typo3. The following code works out of the box....

Hide typo3 content elements for specific user(groups)

typo3,typoscript

Note: I have only an old Typo3 4.3.5 installation, but I hope this hasn't changed much. In User admin, edit group permissions and go to Access lists. At the bottom is "Explicitly allow/deny field values" where you can restrict specific content types. With the restriction, affected users still see the...

Remove default html header with typoscript

typo3,typoscript

On the rewritten question: how to remove the page title tag. config.noPageTitle = 2 This is an age-old extravaganza of TypoScript: https://forge.typo3.org/issues/14929...

How do I access GET/POST from a view helper?

typo3,typo3-6.1.x

Of course you can, the same way as you would do it within controller: $fooInGet = \TYPO3\CMS\Core\Utility\GeneralUtility::_GET('foo'); $barInPost = \TYPO3\CMS\Core\Utility\GeneralUtility::_POST('bar'); $zeeAnywhere = \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('zee'); ...

How to assign variable in fluid?

typo3,fluid,view-helpers

Define namespace like following at the top {namespace v=FluidTYPO3\Vhs\ViewHelpers} Then use set viewhelper <v:variable.set name="test" value="12345" /> {test} {test} will return value 12345...

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

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

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: don't use t3lib_extMgm class it's removed since 7.x you can register this hook just with: $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem'][$_EXTKEY] = 'EXT:your_ext/Classes/Hooks/PageLayoutView.php:\Vendor\YourExt\Hooks\PageLayoutView'; Depending on how did you register the...

tt_news single view with static news_id

typo3,tt-news

Insert the following lines to the setup field of an ext-template at the page where you want to display the selected news item in SINGLE view if no SINGLE view for another record was requested: # hide the "no news id" message plugin.tt_news._LOCAL_LANG.default.noNewsIdMsg = &nbsp; # set the tt_news singlePid...

TYPO3-Upgrade 4.5 to 6.2: namespaces

namespaces,typo3,typo3-6.2.x

To use the new XLASS feature, you need to provide a proper autoloading, by either sticking to the convention or by creating an ext_autoload.php file. http://docs.typo3.org/typo3cms/CoreApiReference/ApiOverview/Autoloading/Index.html http://docs.typo3.org/typo3cms/CoreApiReference/ApiOverview/Xclasses/Index.html...

Fluid image with extra data for cycle2

typo3,fluid

Since data-cycle-title and data-cicle-desc are not registered arguments within the ImageViewHelper you cant pass those values directly. But there is a additionalAttributes argument for the rescue. You can add as many attributes as you like to have in your image tag. additionalAttributes expects an array notation: <f:image ... additionalAttributes="{data-cycle-title: 'Title',...

How to get Query object to felogin repository?

typo3,typo3-6.1.x

I think Below code is useful to you $query = $this->persistenceManager->createQueryForType('TYPO3\CMS\Extbase\Domain\Model\FrontendUser'); Write in this your extension repository....

RealURL: caching or not?

typo3,realurl

Urs, I have no idea why blog's author gave that statement but it's generally wrong. Have no idea what kind of problems they encountered (maybe if they described it, it had some sense), anyway best solution is proper RU configuration instead of disabling the cache. Keep in mind that general...

File url [tmp_name] after upload via Typo3 backend

typo3,fluid

It seems you did not define the enctype attribute on the <f:form> tag. <f:form ... enctype="multipart/form-data"> ... </f:form> See also: http://www.w3schools.com/tags/att_form_enctype.asp http://wiki.typo3.org/Fluid#f:form ...

Wrap entire column in a div using Typoscript

typo3,typo3-6.2.x

You can simply put a wrap around the individual columns, they behave like a COA page.20.wrap = <div id="left-column"> | </div> ...

How to upgrade TYPO3 4.5 to 6.2

typo3,typo3-6.2.x,typo3-4.5

Here's a (still partial and to-be-completed) step by step guide from my upgrading practice which I would like to share. Thanks for the guide on https://jweiland.net/typo3/vortraege/typo3camp-berlin-2014.html that has helped me a lot. Note that these are my personal experiences which may or may not apply to your environment. Treat everything...

How to convert nodes to uris in TYPO3 Neos

typo3,typo3-neos

I bet if you keep the processor and remove the neos:link.node from your template then the <f:debug>{link}</f:debug> will show a http:// link to the node. The error happens with the link ViewHelper which expects a node or node path but neither a node:// not a href:// link (maybe we should...

How to access two TYPO3 root folders one with “localhost ” and other with “IP Address”

configuration,typo3,typo3-6.2.x

Add a domain record to each root, the first one with domain 'localhost', the second one with the IP address as domain. If both hostnames are routed correctly, that should do it.

How to send emails from typo3 v6.2 [closed]

php,email,typo3,typo3-6.2.x

TYPO3 has built in functions for sending e-mails and I would recommend to use the provided classes, since it includes all configuration setup (eg. SMTP auth, correct setting of e-mail headers) which could be configured in TYPO3 install tool. Usage is quite easy and the example below is taken directly...

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

typo3,typoscript,realurl,typo3-4.5

This is an obvious example of "get desperate and look for hacks instead of looking at the problem after a good night's sleep". There were inconsistencies in the RealURL Config which provoked the erroneous behaviour. I'm posting the hopefully fully working RealURL config. It covers two single-domain/multi-language websites as well...

What is the relationship between typo3 cms and typo3 flow?

typo3,typo3-6.2.x,typo3-flow

Flow is a PHP framework from TYPO3 family, which can be used on its own. TYPO3 family has a few more members, the most important are TYPO3 CMS and Neos. See the TYPO3 family brand page. Released at the end of 2011, Flow was initially developed as a foundation for...

Display category and its content in TYPO3

typo3,typoscript,typo3-6.2.x

There is no out-of-the box solution for this. But you can use the following : Or create your own extension where you gather the categories of your page and render them on your page. You then can also create a sort of category menu. You can use category collection :...

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

typo3,typoscript,typo3-flow,typo3-neos

The arguments from the TypoScript plugin object is available as internal arguments on the request, which is available in the controller action. /** @var \TYPO3\TYPO3CR\Domain\Model\Node $currentNode */ $currentNode = $this->request->getInternalArgument('__node'); A few additional tips can be found here...

TYPO3 fluid get @attributes

typo3,fluid

Thanks Christoph. This solution works: <f:for each="{rss_news.enclosure}" as="item"> <img src="{item.url}" alt=""> </f:for> ...

How to disable cache for a image carousel in TYPO3

caching,typo3,typoscript,extbase,typo3-6.2.x

in your ext_localconf.php there, where you added your plugin make an usage of the 4-th param of configurePlugin method \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin( 'Vendor.' . $_EXTKEY, 'PluginName', array('Customers' => 'slider',), array('Customers' => 'slider',) // List non-cachable action(s) ); Of course fix the VendorName and PluginName to your own. It will cause that plugin's...

How can I read lines from a file in Typo3?

typo3

You can copy it to a temporary local path with $path = $file->getOriginalResource()->getForLocalProcessing(false); Then you can use fgets as usual to loop through the file line by line....

Language detection not working in Typo3 6.2.12

typo3,typoscript,typo3-6.2.x,language-detection

I've added the following configuration; plugin.tx_rlmplanguagedetection_pi1 { useOneTreeMethod = 1 defaultLang = de limitToLanguages = de,en } page.987 =< plugin.tx_rlmplanguagedetection_pi1 I understood that the functionality is not working only with this configuration. We need to "Select Official Language (ISO code):" in the website langauge ( alternate language we added in...

Fluid Powered TYPO3 FLUX Fluidcontent - No Output in Frontend?

output,typo3,frontend,fluid,flux

It seems that the frontend rendering configuration for the CType fluidcontent_content is missing. Did you add the following to your typo3conf/AdditionalConfiguration.php: <?php $GLOBALS['TYPO3_CONF_VARS']['FE']['contentRenderingTemplates'] = array('fluidcontentcore/Configuration/TypoScript/'); ...

userfunc condition for detecting mobile device

typo3,typoscript,typo3-7.x

You can accomplish this with TypoScript using the PAGE Object. The code below shows you how to execute your own code before executing something else (like the template engine/content rendering etcetera). page.01 = USER_INT page.01 { userFunc = TYPO3\MyExt\Utility\MobileDeviceUtility->detectMobileDevice } And in code: <?php namespace TYPO3\MyExt\Utility; class MobileDeviceUtility { /**...

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

    Only a partial answer, for the problem with the first menu level: You are using allWrap to add the <li> tag, which only wraps the menu item, but not the submenu. Use wrapItemAndSub instead, as you did on the second menu level. Link to documentation. Also, some indentions in the...

    Typoscript add class to the first element using stdWrap

    typo3,typoscript,typo3-6.2.x

    Your original TS is fine. Supposing you have the images in the same CE (Content element), not in several CEs. As such: For easier readability, I have modified the following line: stdWrap.wrap = <div class="item active">A|ENDA</div>|*|<div class="item">B|ENDB</div>|*|<div class="item">C|ENDC</div> Which gives me: <div id="c1531" class="csc-default"> <div id="carousel-example-generic" data-ride="carousel" class="carousel slide carousel-fade">...

    typo3 templavoila check current language

    typo3,typoscript,templavoila

    Using translation labels in TypoScript You can use a translation label in TypoScript. For example: {LLL:typo3conf/customlabels.xlf:label.id} {LLL:EXT:mytemplateext/Resources/Private/Language/locallang.xlf:label.id} You may want to look at: http://docs.typo3.org/typo3cms/FrontendLocalizationGuide/BasicSetupOfALocalizedWebsite/Llxml%28locallang-xml%29InPluginsAndTyposcript/Index.html llXML files are XML files containing labels that the system can fetch in a localized version if a language pack is installed. If you want to...

    typo3 flow persist updated relation

    php,doctrine2,typo3,typo3-flow

    From the Flow manual: When you add or remove an object to or from a repository, the object will be added to or removed from the underlying persistence as expected upon persistAll. But what about changes to already persisted objects? As we have seen, those changes are only persisted, if...

    How to get all FAL File Objects which are referenced?

    repository,typo3,extbase,fal

    You could do it like this, details are at the bottom: Get all file references. Go through them, retrieve the referenced file for each of them and retain only the ones where the field mime_type starts with image/. There are two things you probably need to watch out for: The...

    Typo3 - extbase - Missing type information, probably no @param annotation for parameter “$currentPage”

    annotations,typo3,extbase,typo3-6.2.x

    when you declare param you need to set type of it. For all of them not only one. when you're not sure what type will be set use 'mixed' why you have @param $newNewsletter if it is not declared in method ? Either delete this annotation or add it to...

    How to change default “Page Not Found” window (template) in TYPO3 v6.2.x

    typo3,typo3-6.2.x

    This is done using the setting $GLOBALS['TYPO3_CONF_VARS'][FE][pageNotFound_handling]. You can see a short documentation of it in the TYPO3 install tool under "All configuration", and you can also modify its value there. EDIT For simple understanding(people like me :)) 1.select install tool from left main panel 2.select All configuration from it...

    How to access TCA-fields in the Fluid template for a custom content element

    typo3,fluid,typo3-6.2.x

    If you name your element settings.sys_category, then you should be able to access its value with {settings.sys_category} in the Fluid template, as well as from $settings['sys_category'] in the Controller. Otherwise, you will need to parse the pi1_flexform field of your content element. In Fluid, it could be done using a...

    Automatically go into list view when going to a folder

    typo3,typo3-6.2.x

    There's an extension 'autoswitchlistview' which does exactly what you're looking for: Whenever you are in the page module and clicking on a sys folder in the page tree, you will be forwarded to list view automatically. View Repository on GitHub...

    Typo3 6.2 fluid pagination not working as expected

    typo3,fluid,extbase,typo3-6.2.x,typo3-4.5

    To fix the above issue i rebuilt the query in extbase query format. In typo3 6.2.x paginate will not work with query statement so we need to convert it into extbase query format. My rebuilt query format is, $constraints = array(); $subConstraints = array(); $query = $this->createQuery(); foreach($PublicationYears as $year)...

    Disable TemplaVoila Backend Layout for some sections

    typo3,fluid,templavoila

    Enable the classic Page module as you already did and clear the entire Cache as always. After that you see two "Page" Modules in the upper right corner of the t3 backend and can switch between "Classic" and TV-Mode. Don't forget to create a new / clean template for your...

    PHP array passed by reference?

    php,arrays,typo3,pass-by-reference,pass-by-value

    Arrays are passed by value indeed (or as some have pointed by reference if they are not modified in the function or method, see the Rohit comment above). I thought the arrays were different but were not. It was just fatigue. Debugging in late hours is not productive. Anyway, I...

    Edit Publish Date in second language

    typo3,typo3-6.2.x

    If you want to have different publishing dates for different languages, this configuration works in TYPO3 6.2: // Enable starttime and endtime for non-default language unset($GLOBALS['TCA']['tt_content']['columns']['starttime']['l10n_display']); unset($GLOBALS['TCA']['tt_content']['columns']['starttime']['l10n_mode']); unset($GLOBALS['TCA']['tt_content']['columns']['endtime']['l10n_display']); unset($GLOBALS['TCA']['tt_content']['columns']['endtime']['l10n_mode']); t3lib_div::loadTCA('tt_content'); is no longer needed as of TYPO3...

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

    php,typo3,typo3-6.2.x

    I think it needs to be /** * action show * * @param string $id Course-Id * @return void */ public function showAction($id){ } string lowercase and the argument $id must be specified as well...

    TYPO3 special menu “browse”

    menu,typo3,typoscript

    You need to remove the special.value to always take the current pid. It could look something like this (slightly different, but copied from a live project): lib.navi.horizontal = COA lib.navi.horizontal { 10 = HMENU 10 { special = browse special { items = prev } 1 = TMENU 1.noBlur =...