[Typo3-dev] direct_mail: Bug or Feature
Peter Russ
peter.russ at 4many.net
Fri Apr 29 16:31:32 CEST 2005
Situation:
Providing several URLs in one installation for a customer with
individual direct mails results in chaos.
URL-1
direct mail 1
newsletter 1 (id=nl-1)
URL-2
direct mail 2
newsletter 2 (id=nl-2)
Previewing newsletters works as expected, i.e. the different URLs are
used to display: eg:
http://URL-1/index.php?id=nl-1
http://URL-2/index.php/id=nl-2
So in preview each newsletter has the individual layout.
Problems raise with prefetching the newsletter:
Fetching newsletter 1 gets
http://URL-1/index.php?id=nl-1
Everything is okay, the newsletter looks as expected.
Fetching newsletter 2 gets
http://URL-1/index.php?id=nl-2
The newsletter nl-2 will be rendered in the layout of root template of
URL-1 as URL-1 is address instead of URL-2 and NOT in layout of
newsletter 2 :-(
Only work around: logout from http://URL-1/typo and login again with
http://URL-2/typo. But this not very BE_user friendly.
I figured out that:
$this->urlbase =
substr(t3lib_div::getIndpEnv("TYPO3_REQUEST_DIR"),0,-(strlen(TYPO3_MOD_PATH)+strlen(TYPO3_mainDir)));
causes the problem, but have at the moment no time to dive into the code
and fix this to the correct url as preview does. Any hints to help me to
save time are welcome. If this would be a bug, fix would be provided then.
Regs. Peter.
More information about the TYPO3-dev
mailing list