Project

General

Profile

Actions

Bug #50451

closed

User function in typo3 6.1

Added by Tomaso Neri over 11 years ago. Updated over 11 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2013-07-26
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.1
PHP Version:
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:

Description

Hi all, i really need to use a user function to perform locale check in my setup but the old approach seems not to work anymore.

I've searched around the internet if something was changed regarding user functions in typo3 6.1 without positive results.

includeLibs.user_geoLocator = fileadmin/userFunctions/user_geoLocator.php 

[globalVar= GP:L=2] || [userFunc = user_geoLocator]
...
...
[end]

in user_geoLocator.php

function user_geoLocator(){
    ...
    ...
}

Thanks in advance and best regards,
tomaso

Actions #1

Updated by Philipp Gampe over 11 years ago

  • Status changed from New to Needs Feedback

Please ask questions in the newsgroup/forum.

It must be

config.includeLibrary = path/to/file.php
according to http://docs.typo3.org/typo3cms/TyposcriptReference/Setup/Config/Index.html

or

page.includeLibs.myLib = path/to/file.php
according to http://docs.typo3.org/typo3cms/TyposcriptReference/Setup/Page/Index.html
However, then your nesting is wrong. Conditions must be at the top level (meaning not inside any {} braces.
Actions #2

Updated by Tomaso Neri over 11 years ago

Hi, sorry for the wrong place.
Now is resolved.

Thanks again and best regards,
tomaso

Actions #3

Updated by Philipp Gampe over 11 years ago

  • Status changed from Needs Feedback to Rejected

Not a bug.

Actions

Also available in: Atom PDF