VF DSL 468x60

Template abhängig von Spalteninhalt

Submitting your vote...
Rating: 4.4 of 5. 5 vote(s).
Click the rating bar to rate this item.

Nimmt das 1. Template wenn in der rechten spalte ein Inhalt vorhanden ist, ansonsten das 2.

 

temp.maintemplate= COA
temp.maintemplate {
  10 = COA
  10 {
    if.isTrue.numRows < styles.content.getRight
    10 = TEMPLATE
    10 {
       
      template = FILE
      template.file = fileadmin/templates/template-2column.html
    }
  }
  20 = COA
  20 {
    if.isFalse.numRows < styles.content.getRight
    10 = TEMPLATE
    10 {
       
      template = FILE
      template.file = fileadmin/templates/template.html
    }
  }
}


Comments


rene, 13-04-06 10:15:
Wie kann ich das mit dem Autoparser zusammenbringen?

plugin.tx_automaketemplate_pi1 {

# Read the template file:
content = FILE
content.file = ???

Also, wie bekomme ich den Pfad von temp-maintemplate in content.file?

rene
PS bitte eine Mail an mich, falls jemand die Antwort weiß!
, 13-04-06 10:47:
Die Antwort ist folgende. Bitte so den Autoparser konfigurieren:

plugin.tx_automaketemplate_pi1 {
content = COA
content < temp.maintemplate
...
}

Gruß rene
andi, 05-03-10 10:15:
Und wie funktioniert das Ganze bei Seiten mit TemplaVoila?

Add comment

* - required field

*



*
*

Top 10 Updates

Erstellen eines einfachen Infocenters mit TYPO3  geändert am  17-Nov-2009 11:11:22
Funktionierendes Section Menu mit TemplaVoila geändert am  05-May-2009 10:42:40
"Nicht im Menü" in Sitemap anzeigen geändert am  05-May-2009 10:12:24
Implementation des DHTML Menüs von brainjar.com  geändert am  01-Feb-2009 13:01:36
Beispiel DHTML Menü geändert am  01-Feb-2009 12:47:38
Anzeigebeispiel für dynamische Bild Masken geändert am  16-Dec-2008 15:11:25
Links geändert am  11-Dec-2008 10:12:33
Nützliche Links geändert am  11-Dec-2008 10:05:56
Transparente PNG's in IE5/6 ohne JavaScript geändert am  04-Oct-2008 12:28:14
Typoscript Eigenschaften mit stdWrap erweitern geändert am  13-Jun-2008 14:16:12

Latest comments

05-Mar-2010 10:15:12
andi schrieb: Und wie funktioniert das Ganze bei Seiten mit TemplaVoila?
Template abhängig von Spalteninhalt
28-Feb-2010 10:16:39
Dirk schrieb: Hello, this ts is awsome. very great! but is it possible to insert a 1px line before every...
4 Spalten Menu
24-Feb-2010 16:18:12
fragolina schrieb: tolle Sammlung! hat mir schon mehrmals geholfen ;-) Vielen Dank
Snippets
English
Suche: