Zum Inhalt springen

problem mit sreen resolution detection

Erstellt am 8. Juni 2006 · 3 Antworten · letzte Antwort am 12. Juni 2006

Tags: Frage

silverzone ·

hi ihr. ich brauche die EXT: sreen resolution detection um ein entsprechend grosses logo einzublenden. ich habs so versucht:

page.config.language = de 
page {
	config {
		doctype = xhtml_trans
		xhtml_cleaning = all
		language = de
		index_enable = 1
		index_externals = 1
		sys_language_uid = 0
		locale_all = de
	}
}

page.includeCSS.f1 = fileadmin/user_upload/template/css.css
page.includeLibs.ypMenu = fileadmin/scripts/ypMenu/ypMenu.php
page.includeLibs.flashheader = typo3conf/ext/mf_flashheader/flashheader.php

plugin.tx_indexedsearch {
search.rootPidList = 1
_DEFAULT_PI_VARS.type = 1 
show.rules = 0
blind.sections=1
blind.order=1
blind.lang=1
blind.media=1
blind.desc =0
lang = 1
}


plugin.tx_macinasearchbox_pi1 {
	templateFile = fileadmin/user_upload/template/suchbox/template.htm
	pidSearchpage = 5
        rootPidList = 5
        
        }
        

		
plugin.tx_automaketemplate_pi1 {
content = FILE
content.file = fileadmin/user_upload/template/template.html
elements {
BODY.all = 1
BODY.all.subpartMarker = DOCUMENT_BODY
HEAD.all = 1
HEAD.all.subpartMarker = DOCUMENT_HEADER
TD.all = 1
}
relPathPrefix = fileadmin/user_upload/template/
}



# Main TEMPLATE cObject for the BODY
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
template =< plugin.tx_automaketemplate_pi1
workOnSubpart = Body

plugin.tx_ccscreenres_pi1.detectionType = cooperative
[userFunc= tx_ccscreenres_match(0)]

marks.FLASH = HTML
[userFunc= tx_ccscreenres_match(<801)]
marks.FLASH.value = <img src="fileadmin/user_upload/template/flash_header/v1.jpg" width="781" alt="" />

[userFunc= tx_ccscreenres_match(>801)] 
marks.FLASH.value = <img src="fileadmin/user_upload/template/flash_header/v2.jpg" width="900" alt="" />

ich denke, dass de code stimmt. was mich irritiert, dass kein cookie erstellt wird. das wird in der doku aber beschrieben. ich habe keinerlei andere einträge ausser dem code oben getätigt.

der object-browser gibt mir ebenfalls einen fehler zurück:

2:    Line 3466: Object Name String, "[userFunc" contains invalid character "[". Must be alphanumeric or one of: "_-."
2:    Line 3469: Object Name String, "[userFunc" contains invalid character "[". Must be alphanumeric or one of: "_-."
2:    Line 3473: Object Name String, "[userFunc" contains invalid character "[". Must be alphanumeric or one of: "_-."

aber ich hab den text ja vom manual übernommen...

bitte um hilfe

woida ·
plugin.tx_ccscreenres_pi1.detectionType = cooperative

gehört nicht ins temp-Objekt (steht so auch in der Doku).

Und nach dem letzen [userFunc= ....] sollte noch ein [global] kommen.

silverzone ·

danke für die antwort

Hallo. also ich habe es jetzt korrigiert, doch es läuft immer noch nicht... wenn ich die auflösung auf 800*600 umstelle wird dennoch das grosse bild angezeigt #angry#

mal mein vollständiger ts-code.

page = PAGE
page.typeNum = 0


# Umstellung auf XHTML
page.config.index_enable = 1
page.config.language = de 
page {
	config {
		doctype = xhtml_trans
		xhtml_cleaning = all
		language = de
		index_enable = 1
		index_externals = 1
		sys_language_uid = 0
		locale_all = de
	}
}

page.includeCSS.f1 = fileadmin/user_upload/template/css.css
page.includeLibs.ypMenu = fileadmin/scripts/ypMenu/ypMenu.php
page.includeLibs.flashheader = typo3conf/ext/mf_flashheader/flashheader.php

plugin.tx_indexedsearch {
search.rootPidList = 1
_DEFAULT_PI_VARS.type = 1 
show.rules = 0
blind.sections=1
blind.order=1
blind.lang=1
blind.media=1
blind.desc =0
lang = 1
}



plugin.tx_ccscreenres_pi1.detectionType = cooperative
page.100 < plugin.tx_ccscreenres_pi1


plugin.tx_macinasearchbox_pi1 {
	templateFile = fileadmin/user_upload/template/suchbox/template.htm
	pidSearchpage = 5
        rootPidList = 5
        
        }
        

		
plugin.tx_automaketemplate_pi1 {
content = FILE
content.file = fileadmin/user_upload/template/template.html
elements {
BODY.all = 1
BODY.all.subpartMarker = DOCUMENT_BODY
HEAD.all = 1
HEAD.all.subpartMarker = DOCUMENT_HEADER
TD.all = 1
}
relPathPrefix = fileadmin/user_upload/template/
}



# Main TEMPLATE cObject for the BODY
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
template =< plugin.tx_automaketemplate_pi1
workOnSubpart = Body

marks {
        
        SPACER < temp.spacer_menu
        MENU = COA
     	MENU {
     	10 < temp.ypMenu
     	20 < temp.user_menu
     	}

#        MAIN < styles.content.get
#        MAIN < temp.main_rechts

MAIN < styles.content.get
MAIN = CONTENT
      MAIN{
             table = tt_content
             renderObj < tt_content
             renderObj.stdWrap.wrap (
 	|
     	)
}


	CREATETD_BY < temp.footer
	LAST_UPDATE < temp.update
	COPYRIGHT < temp.copyright 
        }

[userFunc= tx_ccscreenres_match(0)]

marks.FLASH = HTML
[userFunc= tx_ccscreenres_match(> 0)]
marks.FLASH.value = <img src="fileadmin/user_upload/template/flash_header/v1.jpg" width="781"  />

[userFunc= tx_ccscreenres_match(> 801)]
marks.FLASH.value = <img src="fileadmin/user_upload/template/flash_header/v2.jpg" width="900"  />

[global]
}  




# Main TEMPLATE cObject for the HEAD
temp.headTemplate = TEMPLATE
temp.headTemplate {
template =< plugin.tx_automaketemplate_pi1
workOnSubpart = DOCUMENT_HEADER
}


# Copying the content from TEMPLATE for <head>-section:
page.headerData.10 < temp.headTemplate

# Copying the content from TEMPLATE for <body>-section:
page.20 < temp.mainTemplate


temp.user_menu = USER
temp.user_menu.userFunc = user_menu->menuEnd

gruss stefan