[TYPO3-english] config.titleTagFunction function called before my extension.

Nathan L typo3 at k9tfk.com
Wed Dec 24 19:13:02 CET 2008


I figured it out.  USER_INT extensions are executed after
renderContentWithHeader() is called.  All I had to do was use this code in
my extension:

$GLOBALS['TSFE']->content = str_replace("<title>My Static
Title</title>","<title>My Dynamic Title:
$somevar</title>",$GLOBALS['TSFE']->content);

(Assuming $somevar is html encoded using the proper charset to keep security
tight.)

Merry Christmas.  Maybe I can stop working and start celebrating soon. :)
--Nathan

On Tue, Dec 23, 2008 at 2:21 PM, Nathan L <typo3 at k9tfk.com> wrote:

>
> Is there any way to force the config.titleTagFunction to execute as the
> last thing on the page so other extensions can alter the title first?
>
>

-- 
Nathan Lenz
nathan.lenz at gmail.com


More information about the TYPO3-english mailing list