[TYPO3-german] Re: COA Objekt als Variable in HTML Objekt verfügbar machen

Christian Wolff chris at connye.com
Sat Mar 31 22:19:34 CEST 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Attila,
ich du verwendest die falsche syntax!
du kannst ein ein typoscript object nicht einfach so ausgeben wie du
es um unteren code versuchst.

dein ausgabe code müste so aussehen:

## Lib object referenz erstellen.
page.headerData.15 = < lib.fb_likebutton.10
## zusätzlichen outerwrap hinzufügen da dieser
## nach dem dataWrap aus dem lib.* object ausgeführt wird.

page.headerData.15.outerWrap(
<meta property="og:title" content="Tiroler Nuss&ouml;l" />
<meta property="og:site_name" content="Tiroler Nuss&ouml;l" />
<meta property="og:type" content="website" />
<meta property="og:url" content="|" /><!-- hier das pipe um den inhalt
einzusetzen -->
<meta property="og:image"
content="http://eiler2.dyndns.org/fileadmin/templates/img/fbthumb.png" />
<meta property="og:description" content="Tiroler Nuss&ouml;l Description"
/>
<meta property="fb:admins" content="meine fb-id" />
<meta property="fb:app_id" content="meine fb-app-id" />
)


gruss chris

Am 31.03.2012 21:06, schrieb Attila Sirman:
> Hallo liebe Gemeinde,
> 
> 
> ich stehe vor fokgenden Problem: ich definierfe ein lib Objekt via
> TS und will dieses später in einem HTML-Objekt verwenden, was mir
> nicht gelingen will.
> 
> Der Code:
> 
> # 
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>
> 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> # TYPO Skript für facebook like-button # 
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>
> 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> 
> lib.fb_likebutton = COA lib.fb_likebutton { 10 = TEXT 
> 10.typolink.parameter.data = TSFE:id 10.typolink.returnLast = url 
> 10.typolink.addQueryString = 1 10.typolink.addQueryString.exclude =
> id 10.dataWrap = {TSFE:baseUrl}| 10.rawUrlEncode = 1 wrap =
> <fb:like href="|" send="false" layout="button_count" 
> show_faces="false" class="fblike"></fb:like> }
> 
> [useragent = facebookexternalhit/1.1 
> (+http://www.facebook.com/externalhit_uatext.php)] 
> page.headerData.15 = HTML page.headerData.15.value ( <meta
> property="og:title" content="Tiroler Nuss&ouml;l" /> <meta
> property="og:site_name" content="Tiroler Nuss&ouml;l" /> <meta
> property="og:type" content="website" /> <meta property="og:url"
> content="{lib.fb_likebutton.10}" /> <<<< HIER IST DAS PROBLEM <meta
> property="og:image" 
> content="http://eiler2.dyndns.org/fileadmin/templates/img/fbthumb.png"
> /> <meta property="og:description" content="Tiroler Nuss&ouml;l
> Description" /> <meta property="fb:admins" content="meine fb-id"
> /> <meta property="fb:app_id" content="meine fb-app-id" /> ) 
> page.headerData.15.value.insertData = 1 [global]
> 
> Das lib.fb_likebutton lässt sich an anderer Stelle ohne Probleme
> ausgeben.
> 
> Habt Ihr Lösungen? 1000 Dank.
> 
> Attila
> 
> 


- -- 
Christian Wolff, Berlin
webdeveloper, tech-loving geek and typo3 enthusiast
http://www.connye.com/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)

iEYEARECAAYFAk93ZtYACgkQIcCaXPh/JHFjlgCgqmq3Dfl/WGz2VkVBPlOFbJJQ
/jsAnRywS8HgbvQ0gxH7gujB90FOCuU1
=8EKV
-----END PGP SIGNATURE-----


More information about the TYPO3-german mailing list