Zum Inhalt springen

stylesheet an auflösung anpassen (ext: screen resolution detection )

Erstellt am 7. August 2005 · Noch keine Antworten

Tags: HTML & CSS, Frage

mr.​schnabel ·

Hallo, ich bin in typo script noch nicht so fitt, ich versteh die logik noch nicht so ganz ... kann das nicht php, delphi oder so ein bisschen ähnlicher sein? ... jedenfalls bin ich hier total am verzweifeln, das mit dem an die auflösung anpassen funktioniert einfach nicht, aber hier mein bisheriges setup-feld:

# Default PAGE object:
page = PAGE
page.typeNum = 0

# page.config.disableAllHeaderCode=1
page.10 =< plugin.tx_automaketemplate_pi1

# Configuring the Auto-Parser:
plugin.tx_automaketemplate_pi1 {

    # Read the template file:
  content = FILE
  content.file = fileadmin/template/main/template1.php

    # Here we define which elements in the HTML that 
    # should be wrapped in subpart-comments:

  elements {
    BODY.all = 1
    BODY.all.subpartMarker = DOCUMENT_BODY
    HEAD.all = 1
    HEAD.all.subpartMarker = DOCUMENT_HEADER
    HEAD.rmTagSections = title
  }
  # Prefix all relative paths with this value:
  relPathPrefix = fileadmin/template/main/
}

# [userFunc= tx_ccscreenres_match(0)]
// screen res detection
page.1 < plugin.tx_ccscreenres_pi1
 
[userFunc= tx_ccscreenres_match(<0)]
page.stylesheet = fileadmin/template/main/800.css

[userFunc= tx_ccscreenres_match(<900)]
page.stylesheet = fileadmin/template/main/1024.css

[userFunc= tx_ccscreenres_match(<1100)]
page.stylesheet = fileadmin/template/main/1280.css