Project

General

Profile

Actions

Feature #19244

closed

config.baseURL does not support stdWrap or copying of Objects

Added by Lukas Taferner over 15 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2008-08-21
Due date:
% Done:

0%

Estimated time:
PHP Version:
5.1
Tags:
Complexity:
Sprint Focus:

Description

It is not possible to use stdWrap with baseUrl or copy the content of another COA as baseurl value (e.g. from a PHP_SCRIPT). This is necessary when using realurl in a multidomain environment.

The only solution now is to create conditions for every domain, which can be annoying and lead to strange beahvoiur when mistaking.

(issue imported from #M9212)


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #18498: config.baseURL with stdWrap supportClosed2008-03-25

Actions
Actions #1

Updated by Dmitry Dulepov over 15 years ago

That's right. The whole "config" does not support stdWrap or copying due to technical reasons. I do not think it will ever change.

Actions #2

Updated by Daniela Waranie over 13 years ago

The related issue (0007937) has been closed/resolved, but without new code.

Suggested workaraounds:
1) Use a typoscript condition for each domain. E.g.
[globalString = ENV:HTTP_HOST=sub1.mydomain.com]
config.baseURL = http://sub1.mydomain.com/
[...]
[end]

2) Make a refactoring on "how 'config' and page-specific config-objects like 'page.config' are merged." and add stdWrap as mentioned by Michael Stucki to have userFunc (USER_INT).

3) Create typo3 domain records for each domain (manually or programmatically) and creat an external typoscript file (with conditions for each domain) each time a typo3 domain record was added (automatically).

Note the patch provided in 0007937 do not work when caching is enabled.

Actions #3

Updated by Jo Hasenau over 13 years ago

IMHO 1) is not a workaround but currently the official way to go, since it is the only way to get properly cached results for different domains.

2) is not a workaround but a different solution, which would still not solve the caching problem

3) Would be just a kind of wizard for lazy admins, so no workaround, since it would use the same techniques

I really don't get why one should not be able to add the necessary lines of TS manually, since usually you don't get too many new domains and/or domain changes at once, do you?

Actions #4

Updated by Daniela Waranie over 13 years ago

@Jo Hasenau,

2) The page will be partially-cached and the TS-Base-Tag part is when using USER_INT not cached.

3) If you have a huge amount of subdomains (in my case 50k changes in 6 month) you should not try to manage the typoscript manually. To have such large typoscript condition list in your setup is a bad thing (even when it is auto generated is not the optimum). This is better than 1).

From my point of view: 2) is the best.

Actions #5

Updated by Alexander Opitz almost 11 years ago

  • Status changed from New to Needs Feedback
  • Target version deleted (0)

As this report is very old, is the handling in newer TYPO3 CMS Versions (like 6.0/6.1) more like you expect it?

Actions #6

Updated by Simon Schaufelberger almost 11 years ago

Nothing has changed here. what do you mean with "more like you expect it"? this is still a feature request

Actions #7

Updated by Alexander Opitz almost 11 years ago

  • Category set to TypoScript
  • Status changed from Needs Feedback to New
Actions #8

Updated by Mathias Schreiber over 9 years ago

  • Status changed from New to Closed

config.baseUrl will be removed

Actions

Also available in: Atom PDF