Zum Inhalt springen

wt_csstooltip - keine Anzeige

Erstellt am 16. Januar 2009 · 7 Antworten · letzte Antwort am 21. Januar 2009

Tags: Frage

red-trombone ·

Hallo,

Ich habe die Extension, wie in Ihrem Manual beschrieben eingebaut. Sysordner angelegt und einen Eintrag erstellt. Wohin im Template muss ich die Standardkonfiguration kopieren? Muss ich an der noch etwas ändern?
Ich habe alles normal ins Template kopiert, aber es funktioniert nicht.

Constants

plugin.tx_wtcsstooltip_pi1.PID_replacestring = 166
plugin.tx_wtcsstooltip_pi1.PID_start = 2
plugin.tx_wtcsstooltip_pi1.PID_exclude = 3,4,6
plugin.tx_wtcsstooltip_pi1.string_exclude = 0

TS (gekürzt zur Übersichtlichkeit):

#config#

#RSS-FEED#

includeLibs.gmenu_foldout = media/scripts/gmenu_foldout.php

##tt_news#

tt_content.header.20 > 

#Header verändern#

page = PAGE
page {
	typeNum = 0
	# Allgemeine Seiteneigenschaften setzen
	bodyTag = <body>
	stylesheet = fileadmin/style.css
	includeCSS {
		file1 = fileadmin/tt_news_v2_styles.css
		}

	# Die Designvorlage integrieren
	1 = TEMPLATE
	1.template = FILE
	1.template.file = fileadmin/template.html
	1.workOnSubpart = DOKUMENT
	1.marks {
	#Datum
	INFO = TEXT
	INFO.data = date : d.m.Y - H:i:s          	 
	
	# Inhalt auslesen
	CENTER = CONTENT
	CENTER {
		table = tt_content
	  	select.orderBy = sorting
	  	select.where = colPos = 0
	  	}
	 [loginUser = *]
	
	LEFT = HMENU
	LEFT {
		special = directory
		special.value = 2
		entryLevel = 1
		  1 = GMENU
		  1.NO = 1
		  1.NO {
		  wrap = |<br>
		  XY = 160, 20
		  backColor = #8a8484
		  
		  #Text rendern
		  33 = TEXT
		  33.text.field = title
		  33.fontColor = #000000
		  33.fontFile = fileadmin/fonts/calibri.ttf
		  33.fontSize = 12
		  33.niceText = 1
		  33.offset = 10, 15
		  		  
		  #rote Linie
		  34 = IMAGE
		  34.file = GIFBUILDER
		  34.file {
		  XY = 160,1
		  backColor = #d40707
		  }	
		  34.offset = 0, 0
		  }
		  #Rollover-Effekt
		  1.RO > 1.NO
		  1.Ro.backColor = #061467
		  
		  #Zweite Ebene
		  2 < .1
		  2.NO {
		  	backColor = #b1aaaa
		  	10.fontColor = #000000
		  	10.fontSize = 11
		  	10.offset = 18, 14
		       }
		  2.RO < .2.NO
		  2.RO.backColor = #fcff19
		  
		  
		  #Dritte Ebene
		    3 < .1
		  3.NO {
		  	backColor = #cfc7c7
		  	10.fontColor = #000000
		  	10.fontSize = 11
		  	10.offset = 30, 14
		       }
		  3.RO < .3.NO
		  3.RO.backColor = #fcfe72
		  }
	#Line einlesen
	LINE = IMAGE
	LINE.file = GIFBUILDER
		  LINE.file {
		  XY = 160,1
		  backColor = #d40707
		  }	
	# Textmenu Head
	MENU_HEAD = HMENU
	MENU_HEAD {
		special = directory
		special.value = 31
		1 = TMENU
		1.NO = 1
		1.NO.linkWrap = &nbsp;|&nbsp;&#124 |*| &nbsp;|&nbsp;&#124 |*| &nbsp;|&nbsp;
	 	}
	 	
	 #Infoleiste
	 #
         #Druckansicht
         #
         DRUCK = IMAGE
         DRUCK {
         value = Drucken
         file = fileadmin/template/icons/druck.gif
         }
      
         LOG = IMAGE
         LOG{
         value = Login
         file = fileadmin/template/icons/login.gif
         stdWrap.typolink.parameter= 10
         }
         
         PDF = IMAGE
         PDF{
         value = PDF
         file = fileadmin/template/icons/pdf.gif
         }
         
         RSS = IMAGE
         RSS{
         value = RSS
         file = fileadmin/template/icons/rss.gif
         stdWrap.typolink.parameter = 1
         stdWrap.typolink.additionalParams =&type=100
         }
         
 } 		  

}

[globalVar = GP:tx_ttnews|tt_news > 0]
page.1.marks.PDF.stdWrap.typolink.parameter.dataWrap = {$site}{$pdfType}{$article}{$pointer}{$cc}
page.1.marks.DRUCK.stdWrap.typolink.parameter.dataWrap = {$site}{$printType}{$article}{$pointer}{$cc}
[else]
page.1.marks.PDF.stdWrap.typolink.parameter.data = page:uid
page.1.marks.PDF.stdWrap.typolink.additionalParams.insertData=1
page.1.marks.PDF.stdWrap.typolink.additionalParams =&type=99
page.1.marks.DRUCK.stdWrap.typolink.parameter.data = page:uid
page.1.marks.DRUCK.stdWrap.typolink.additionalParams.insertData=1
page.1.marks.DRUCK.stdWrap.typolink.additionalParams =&type=98
[global]

print = PAGE
print {
  typeNum = 98
  bodyTag =<body bgcolor="#ffffff" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="javascript:window.print()">
  styles.content.getLeft
20 < styles.content.get
} 

#tooltips#

temp_content < styles.content.get

temp_content {

stdWrap {

postUserFunc = tx_wtcsstooltip_pi1->cssTooltip

postUserFunc.PID_start = {$plugin.tx_wtcsstooltip_pi1.PID_start}

postUserFunc.PID_exclude = {$plugin.tx_wtcsstooltip_pi1.PID_exclude}

postUserFunc.PID_replacestring = {$plugin.tx_wtcsstooltip_pi1.PID_replacestring}

postUserFunc.string_exclude = {$plugin.tx_wtcsstooltip_pi1.string_exclude}

postUserFunc.template = {$plugin.tx_wtcsstooltip_pi1.template}

postUserFunc.DB_title = {$plugin.tx_wtcsstooltip_pi1.DB_title}

postUserFunc.DB_replacestring = {$plugin.tx_wtcsstooltip_pi1.DB_replacestring}

postUserFunc.DB_where = {$plugin.tx_wtcsstooltip_pi1.DB_where}

postUserFunc.useCSS = {$plugin.tx_wtcsstooltip_pi1.useCSS}

}

}

styles.content.get >

styles.content.get < temp_content

temp_contentRight < styles.content.getRight

temp_contentRight {

stdWrap {

postUserFunc = tx_wtcsstooltip_pi1->cssTooltip

postUserFunc.PID_start = {$plugin.tx_wtcsstooltip_pi1.PID_start}

postUserFunc.PID_exclude = {$plugin.tx_wtcsstooltip_pi1.PID_exclude}

postUserFunc.PID_replacestring = {$plugin.tx_wtcsstooltip_pi1.PID_replacestring}

postUserFunc.string_exclude = {$plugin.tx_wtcsstooltip_pi1.string_exclude}

postUserFunc.template = {$plugin.tx_wtcsstooltip_pi1.template}

postUserFunc.DB_title = {$plugin.tx_wtcsstooltip_pi1.DB_title}

postUserFunc.DB_replacestring = {$plugin.tx_wtcsstooltip_pi1.DB_replacestring}

postUserFunc.DB_where = {$plugin.tx_wtcsstooltip_pi1.DB_where}

postUserFunc.useCSS = {$plugin.tx_wtcsstooltip_pi1.useCSS}

}

}

styles.content.getRight >

styles.content.getRight < temp_contentRight

temp_contentLeft < styles.content.getLeft

temp_contentLeft {

stdWrap {

postUserFunc = tx_wtcsstooltip_pi1->cssTooltip

postUserFunc.PID_start = {$plugin.tx_wtcsstooltip_pi1.PID_start}

postUserFunc.PID_exclude = {$plugin.tx_wtcsstooltip_pi1.PID_exclude}

postUserFunc.PID_replacestring = {$plugin.tx_wtcsstooltip_pi1.PID_replacestring}

postUserFunc.string_exclude = {$plugin.tx_wtcsstooltip_pi1.string_exclude}

postUserFunc.template = {$plugin.tx_wtcsstooltip_pi1.template}

postUserFunc.DB_title = {$plugin.tx_wtcsstooltip_pi1.DB_title}

postUserFunc.DB_replacestring = {$plugin.tx_wtcsstooltip_pi1.DB_replacestring}

postUserFunc.DB_where = {$plugin.tx_wtcsstooltip_pi1.DB_where}

postUserFunc.useCSS = {$plugin.tx_wtcsstooltip_pi1.useCSS}

}

}

styles.content.getLeft >

styles.content.getLeft < temp_contentLeft

temp_contentBorder < styles.content.getBorder

temp_contentBorder {

stdWrap {

postUserFunc = tx_wtcsstooltip_pi1->cssTooltip

postUserFunc.PID_start = {$plugin.tx_wtcsstooltip_pi1.PID_start}

postUserFunc.PID_exclude = {$plugin.tx_wtcsstooltip_pi1.PID_exclude}

postUserFunc.PID_replacestring = {$plugin.tx_wtcsstooltip_pi1.PID_replacestring}

postUserFunc.string_exclude = {$plugin.tx_wtcsstooltip_pi1.string_exclude}

postUserFunc.template = {$plugin.tx_wtcsstooltip_pi1.template}

postUserFunc.DB_title = {$plugin.tx_wtcsstooltip_pi1.DB_title}

postUserFunc.DB_replacestring = {$plugin.tx_wtcsstooltip_pi1.DB_replacestring}

postUserFunc.DB_where = {$plugin.tx_wtcsstooltip_pi1.DB_where}

postUserFunc.useCSS = {$plugin.tx_wtcsstooltip_pi1.useCSS}

}

}

styles.content.getBorder >

styles.content.getBorder < temp_contentBorder

##tt_news

plugin.tt_news.displaySingle.caption_stdWrap.if.isTrue.field = imagecaption
plugin.tt_news.displaySingle.caption_stdWrap.innerWrap = <p class="news-single-imgcaption"> | </p>

plugin.tt_news.displaySingle.caption_stdWrap.wrap >

Ich nutze TYPO3 Ver. 4.2.1.
Was mache ich falsch?

Gruß,
red-trombone

einpraegsam.​net ·

Wie soll das denn funktionieren?
In der Mitte wird nicht styles.content.get sondern eine eigene Select Anweisung für den Content verwendet und danach wird styles.content.get manipuliert - was doppelt nicht funktionieren kann.

red-trombone ·

Danke! #giggle# es tut :-)
Kannst du mir erklären was ich jetzt damit gemacht habe? (will ja auch wissen, was ich da hin schreib und das langsam mal kapieren #paralyzed# )

red-trombone ·

Hm wt_csstooltip wendet sich auch auf Links an. Wenn ich den (internen) Link dann anklicke, dann öffnet sich die Seite nimmer, ich komme zurück auf die Startseite.
Wie kann ich den Tooltip und den Link verbinden? Oder schließt sich das eine mit dem anderen aus?

Manthano ·

Hi,

ich habe die Extension soweit umgebaut, dass sie sowohl bei Links als auch bei Bildern funktioniert. Da bei Bildern etwas unschön mit der Positionierung des Tooltips habe ich zusätlich noch ein kleines Javscript geschrieben, sodass der Tooltip mit dem Mauszeiger mitwandert. Die Konfiguration müsste noch soweit umgebaut werden, dass man bei Bedarf Js ausschalten kann, geht momentan nur manuell.
Ich würde das gerne zur Verfügung stellen, doch weiß ich nicht wie man hier Dateien Online stellen kann und sobald ich PHP-Code Poste, wird der irgend wie verändert.
Wenn mir diesbezüglich jemand helfen kann, helfe ich auch gerne weiter 🙂