[TYPO3] header image change with title menu

Raouf Abrougui raouf.abrougui at fmed.ulaval.ca
Fri Nov 3 17:15:40 CET 2006


Hi,

I'm using templavoila on a site and i'm trying to change img header
depending on the title of the menu...

Has anybody a typoscript code allowing to make that?

Thanx
________________________________

Raouf Abrougui 

Analyste de l'informatique
Faculté de médecine > Université Laval
Pavillon Ferdinand-Vandry, local 2333
Université Laval , Québec, Canada G1K 7P4
Téléphone: (418) 656-2131, poste 11073
Raouf.Abrougui at fmed.ulaval.ca

________________________________

		Avis relatif à la confidentialité 

		Ce message contient des renseignements qui peuvent être
confidentiels ou protégés. Il s'adresse au destinataire prévu ou à une
personne autorisée à le recevoir en son nom. Si vous l'avez reçu par erreur,
nous vous prions d'en informer l'auteur dans les meilleurs délais, de ne pas
divulguer son contenu et de le supprimer de votre système. 

		========================= 

		Notice of Confidentiality This message contains information
that may be confidential or privileged. It is intended for the exclusive use
of the addressee or any person entitled to receive it. If you received this
message in error, please inform the author as soon as possible, do not
disclose its contents and delete it from your system. 


-----Message d'origine-----
De : typo3-english-bounces at lists.netfielders.de
[mailto:typo3-english-bounces at lists.netfielders.de] De la part de Aji Yahya
Envoyé : 28 septembre 2006 07:36
À : TYPO3 English
Objet : Re: [TYPO3] <img> tag and the extension KJ: image-lightbox v2

Hello Roelof,

did the EXT doesnt work or you cannt place the image where you want????

if the extension doesnt work , sure there is away to get the EXT to work, i
reported before 2 week a bug to the owner of the EXT but :( i didnt get any
answer from him

ok let us look to class.ux_tslib_content.php : (EXT)
line 108: $GLOBALS['TSFE']->additionalHeaderData['kj_imagelightbox2_css'] =
'<link rel="stylesheet"
href="'.t3lib_extMgm::extRelPath('kj_imagelightbox2').'lightbox/css/lightbox
.css"
type="text/css" media="screen" />';

this path is wrong while you get in source code like this:

<link rel="stylesheet"
href="../typo3conf/ext/kj_imagelightbox2/lightbox/css/lightbox.css"
type="text/css" media="screen" />

and it must be like this:

<link rel="stylesheet"
href="typo3conf/ext/kj_imagelightbox2/lightbox/css/lightbox.css"
type="text/css" media="screen" />

just add this line instead of the original , and it will work
$GLOBALS['TSFE']->additionalHeaderData['kj_imagelightbox2_css'] =
'<link rel="stylesheet"
href="typo3conf/ext/kj_imagelightbox2/lightbox/css/lightbox.css"
type="text/css" media="screen" />';

hope that helps.

takecare
Johannes

On 9/28/06, Roelof Wobben <rwobben at hotmail.com> wrote:
>
>
> Nobody knows the answer. Wierd
>
> >From: "Roelof Wobben" <rwobben at hotmail.com>
> >Reply-To: TYPO3 English <typo3-english at lists.netfielders.de>
> >To: TYPO3-english at lists.netfielders.de
> >Subject: [TYPO3] <img> tag and the extension KJ: image-lightbox v2
> >Date: Wed, 27 Sep 2006 09:17:57 +0000
> >
> >Hello,
> >
> >Because i want the image on the place i want i use the <img> tag in the
> >rte.
> >But now the extension don't seem to work.
> >
> >My template record is :
> >config.doctype = xhtml_strict
> >config.xmlprologue = none
> >
> ># Menu 1 cObject
> >
> >lib.sidebar-1 = HMENU
> >
> >   # First level menu-object, textual
> >
> >lib.sidebar-1.1 = TMENU
> >lib.sidebar-1.1 {
> >
> >     # Normal state properties
> >
> >   NO.allWrap = <div class="menu1-level1-no"> | </div>
> >   NO.stdWrap.htmlSpecialChars = 1
> >
> >     # Enable active state and set properties:
> >
> >   ACT = 1
> >   ACT.stdWrap.htmlSpecialChars = 1
> >   ACT.allWrap = <div class="menu1-level1-act"> | </div>
> >
> >}
> >
> >lib.sidebar-1.2 = TMENU
> >lib.sidebar-1.2 {
> >
> >     # Normal state properties
> >
> >   NO.allWrap = <div class="menu1-level2-no"> | </div>
> >   NO.stdWrap.htmlSpecialChars = 1
> >
> >     # Enable active state and set properties:
> >
> >   ACT = 1
> >   ACT.stdWrap.htmlSpecialChars = 1
> >   ACT.allWrap = <div class="menu1-level2-act"> | </div>
> >
> >}
> >
> >lib.sidebar-1.3 = TMENU
> >lib.sidebar-1.3 {
> >
> >     # Normal state properties
> >
> >   NO.allWrap = <div class="menu1-level3-no"> | </div>
> >   NO.stdWrap.htmlSpecialChars = 1
> >
> >     # Enable active state and set properties:
> >
> >   ACT = 1
> >   ACT.stdWrap.htmlSpecialChars = 1
> >   ACT.allWrap = <div class="menu1-level3-act"> | </div>
> >
> >}
> >
> >
> >
> ># Default PAGE object:
> >
> >page = PAGE
> >page.typeNum = 0
> >page.10 = USER
> >page.10.userFunc = tx_templavoila_pi1->main_page
> >page.20 = IMAGE
> >
> >page.20 {
> >
> >   file = fileadmin/templates/main/pictures/25t.jpg
> >
> >   imageLightbox2 = 1
> >
> >   imageLightbox2.imageset = myImgSet
> >
> >   imageLightbox2.caption= I am a imagecaption
> >
> >   imageLightbox2.saveImageShow = 1
> >
> >   imageLightbox2.printImageShow = 1
> >
> >}
> >
> >
> >Is there a way i get this work ?
> >
> >Regards,
> >
> >Roelof
> >
> >
> >_______________________________________________
> >TYPO3-english mailing list
> >TYPO3-english at lists.netfielders.de
> >http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>



-- 
Aji Yahya
Abelsbergstr. 8
70190 Stuttgart
Germany
Tel: 01727416629 Mobile
      07119979562
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english




More information about the TYPO3-english mailing list