[TYPO3-german] feld aus Extension mit TS ausgeben

Manfred Rutschmann - VOLUMEN Werbe-/Internetagentur rutschmann at agentur-volumen.de
Mon Feb 24 18:01:33 CET 2014


Ralf-Rene Schröder schrieb:
> Hallo...
> 
> ich möchte die Metatags in Abhängigkeit von einer gewählten Kategorie
> überschreiben (mit dem Inhalt des Feldes description)...
> der entsprechende TS Bereich ist folgender:
> cObject = COA
> cObject {
>   10 = TEXT
>   10.value = Testausgabe:
>   10.noTrimWrap = || |
>   20 = RECORDS
>   20 {
>     dontCheckPid = 1
> #   source.data = GP:tx_myext_pi1|category
>     source = 76
>     tables = tx_myext_category
>     conf.tx_myext_category = TEXT
>     conf.tx_myext_category.field = description
>   }
> }
> 
> doch außer meiner Testausgabe: bekomme ich nichts
> (und das Feld description ist dort definitiv gefüllt)
> anstelle von conf.tx_myext_category habe ich auch schon conf.current
> probiert... was mache ich hier falsch ???
> 

Hallo Ralf-Rene,

ich kann Dir hier mal eine Config von mir reinkloppen. Das ganze ist 
halt in Verbindung mit tq_seo, wobei in dem Falle die config von tq_seo 
ausser Kraft gesetzt wird. Dürfte Dir aber vermutlich trotzdem weiterhelfen:



config.titleTagFunction >
tmp.reftitle = COA
tmp.reftitle  {
   10 = TEXT
   10 {
     data = GP:tx_products_machines|machine
     wrap = <title>{DB : tx_products_domain_model_machine:|:name}
     insertData = 1
   }

   20 = TEXT
   20 {
     data = GP:tx_products_machines|machine
     wrap =  &nbsp;- {DB : tx_products_domain_model_machine:|:subtitle}
     insertData = 1
   }
   30 = TEXT
   30 {
     value =  &nbsp;:: Projectname</title>
   }
}


page {
   config.noPageTitle = 1
   headerData.6 = TEXT
   headerData.6 < tmp.reftitle
}


page.meta.description.ifEmpty.cObject = COA
page.meta.description.ifEmpty.cObject  {
   10 = TEXT
   10.if.isTrue.data = GP:tx_products_machines|machine
   10.data = GP:tx_products_machines|machine
   10.noTrimWrap = | {DB : 
tx_products_domain_model_machine:|:seodescription} |
   10.insertData = 1
}
page.meta.keywords.ifEmpty.cObject = COA
page.meta.keywords.ifEmpty.cObject  {
   10 = TEXT
   10.if.isTrue.data = GP:tx_products_machines|machine
   10.data = GP:tx_products_machines|machine
   10.noTrimWrap = | {DB : tx_products_domain_model_machine:|:seokeywords} |
   10.insertData = 1
}
plugin.tq_seo.metaTags.keywords =
plugin.tq_seo.metaTags.description =





-- 
================================================

Manfred Rutschmann

Telefon: +49 (0)751 - 561110-45
Mobil: +49 (0)163 - 1721748
rutschmann at agentur-volumen.de

Danziger Straße 3, 88250 Weingarten, Deutschland
www.agentur-volumen.de
USt.-Id.Nr.: DE281344599


More information about the TYPO3-german mailing list