Zum Inhalt springen

iwt_imagecrop für tt_products u.a. Ext.

Erstellt am 17. März 2013 · Noch keine Antworten

Tags: Bilder, Frage

MrHawaii ·

Hallo

ich hab mir die tolle Extension iwt_imagecrop installiert. Leider funktionierte sie nicht von Anfang an, da imagecycle die Struktur von
tt_content.image.20 verändert. Mit default nach der .20 und vor der .1 im Static Template funktionierte es.

Nun wollte ich das ganze für tt_products lauffähig machen um es jeweils auf die einzelnen eingetragenen Produktdatensätze anzuwenden. Dazu hab ich die tt_products Tabelle mit einer neuen Spalte nwt_imagecrop erweitert und auf true/false gesetzt. Den Eintrag gilt es nun bei meinem TS auszulesen und zu berücksichtigen.

Hier mein bisheriger Ansatz:

plugin.tt_products.image.file {
  width = 100c-100
  width {
    override = 200c-100
    override.if {
      table = tt_products
      select {
        tx_nwtimagecrop_cropscaling = 1
      }
      isTrue.field = tx_nwtimagecrop_cropscaling
    }
  }
  maxW = 100c-100
  maxW {
    override = 200c-100
    override.if {
      table = tt_products
      select {
        tx_nwtimagecrop_cropscaling = 1
      }
      isTrue.field = tx_nwtimagecrop_cropscaling
    }
  }
  height = 100c-100
  height { 
    override = 150c-100
    override.if {
      table = tt_products
      select {
        tx_nwtimagecrop_cropscaling = 1
      }
      isTrue.field = tx_nwtimagecrop_cropscaling
    }
  }
  maxH = 100c-100
  maxH {
    override = 150c-100
    override.if {
      table = tt_products
      select {
        tx_nwtimagecrop_cropscaling = 1
      }
      isTrue.field = tx_nwtimagecrop_cropscaling
    }
  }
}

Ich möchte gern den Ausdruck isTrue.field = tx_nwtimagecrop_cropscaling auf die tt_products Tabelle anwenden, da er sonst unter der tt_content sucht. Denn nur diese steht ja im $cObj-Array.

Hat jemand ne Idee, wie ich die tt_products Tabelle selektieren kann um dann die if-Bedingung darauf anzuwenden?

Danke schon mal für die Tipps

Gruss MrHawaii