[TYPO3-UG Oesterreich] CSS Wechsel mit globaler variable?

Wolfgang Klinger wolfgang at stufenlos.net
Wed Jul 25 16:51:47 CEST 2007


Hallo,

On Jul 25, 2007, at 3:42 PM, Roland Büchler wrote:
> stdWrap.dataWrap = <div class="{field:???} "> | </div>

stdWrap hat auch ein cObject Property mit dem du
mit einer USER oder USER_INT userFunc machen kannst was immer du willst

----
includeLibs.mylib = EXT:user_mylib/script.php

# ... deine Menü Konfiguration
... {
    stdWrap.cObject = USER
    stdWrap.setCurrent = 1
    stdWrap.cObject.userFunc = user_mylib->my_method
}
----

user_mylib/script.php:
----
class user_mylib {
   function my_method($content, $conf) {
     global $TSFE;

     // do something
     // rootline is in $TSFE->sys_page->getRootLine($TSFE->id);
     // data is in $this->data, print_r($this_data);
     // if you want to know all about the object,
     // print_r($this); ;-)

     $return something;
   }
}
----

siehe:
http://tinyurl.com/2yt3bc
http://tinyurl.com/26vstq


sooo, genug getippt, sollte ausreichen ;-)
hth, lg
Wolfgang



More information about the TYPO3-at mailing list