[TYPO3-calendar] setting og:title meta tag?

Mario Matzulla mario at matzullas.de
Thu Apr 21 21:48:54 CEST 2011


Hi Gabor,

Am 20.04.11 16:38, schrieb Gábor Horn:
> Hello,
>
> i'd like to ask of there is a way to configure calendar to set the
> og:title metatag for proper facebook sharing in the event view?

Here is a general TS you might wanna start with:

page.headerData.5 = RECORDS
page.headerData.5 {
   source.data = GPvar:tx_cal_controller|uid
   tables = tx_cal_event
   dontCheckPid = 1
   conf {
     tx_cal_event = TEXT
     tx_cal_event {
       field = title
       htmlSpecialChars = 1
     }
   }
   wrap = <meta property="og:title" content="|" />
}


I see
> the plugin sets the title tag,

Yes, we do it in the code:

if($this->conf['view.']['event.']['substitutePageTitle']==1){
	$GLOBALS['TSFE']->page['title'] = $event->getTitle();
	$GLOBALS['TSFE']->indexedDocTitle = $event->getTitle();
}

Regards,
Mario

i think being able to set the og:title
> metatag to the same might be a nice feature ( more info on
> http://www.ka-mediendesign.de/blog/facebook-meta-tags-in-xhtml/ )
>
> regards, Gabor Horn



More information about the TYPO3-project-calendar mailing list