Zum Inhalt springen

mehrere frontend extentions (css styled content)

Erstellt am 20. Juli 2005 · 2 Antworten · letzte Antwort am 20. Juli 2005

Tags: Frage

mediaman ·

hallo leute,

wie bringt man eigentlich mehrere Frontend-Extentions im setup unter?

Besser gesagt ich hab dieses "css styled content" installiert und alles funktioniert prima, nur nun möchte ich eine weitere extention hinzufügen.

Ich weiß nicht wie das geht???

Das grundsätzliche setup ohne menü sieht so aus:

# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
    # Read the template file:
  content = FILE
  content.file = fileadmin/index.html


    # 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

    TD.all = 1
  }

    # Prefix all relative paths with this value:
  relPathPrefix = fileadmin/
}

# Main TEMPLATE cObject for the BODY
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
    # Feeding the content from the Auto-parser to the TEMPLATE cObject:
  template =< plugin.tx_automaketemplate_pi1
    # Select only the content between the <body>-tags
  workOnSubpart = DOCUMENT_BODY
 
    # Substitute the ###content### subpart with some example content:
  #subparts.content = TEXT
  #subparts.content.value = HELLO WORLD - CONTENT
 subparts.content < styles.content.get

  #subparts.CONTENT_RIGHT = TEXT
  #subparts.CONTENT_RIGHT.value = HELLO WORLD - CONTENT
 subparts.CONTENT_RIGHT< styles.content.getRight
}


# Main TEMPLATE cObject for the HEAD
temp.headTemplate = TEMPLATE
temp.headTemplate {
    # Feeding the content from the Auto-parser to the TEMPLATE cObject:
 template =< plugin.tx_automaketemplate_pi1
    # Select only the content between the <head>-tags
  workOnSubpart = DOCUMENT_HEADER
}

   
# Default PAGE object:
page = PAGE
page.typeNum = 0
page.stylesheet = fileadmin/_lib/styles.css

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

nun die schwierige frage: Wie bekomme ich nun das aus dem Manual da rein??

plugin.tx_imgswopper4x4_pi1 {
  # templates are to be located in the extension folder:
  templatefilename=fileadmin/index.html
  # folder containing the images for hotspots & swop-images:
  imgPath= fileadmin/swop-images/ 
  # code to be rendered into empty hotspot-cells:
  emptySpotCode= <img src="fileadmin/swop-images/blank.gif" width="54" height="54" border="0" alt="" />
}

Wäre toll wenn das jemand wüßte

Proximo ·

ÄÄ... also die Frage ist? Wie du die Zeilen da reinbringt? Also wenn der Inhalt von diese "plugin.tx_imgswopper4x4_pi1" stimmt, dann würde ich das einfach als neues extensiontemplate in deinem Templateordner ablegen... und schon geht es (falls du nicht weißt von was ich rede: #27411 )

MFG Proximo

mediaman ·

Ja stimmt, habe ich nun auch gemerkt. Der Fehler lag auch noch wo anders. Ich dachte man müsste das noch irgendwie mit dem Rest verknüpfen. Vielen Dank, dass du dich durch das Script gewühlt hast.

Allerdings musste ich noch die Zeile:

templatefilename=fileadmin/index.html

auskommentieren. und dann war noch die sache mit dem cache und noch etwas und irgendwann zweifelt man dann an sich selbst.

Also noch mal vielen dank