signal code for Social Media

2 posts / 0 new
Last post
literaturalosrios
signal code for Social Media

Dear support

Please be so kind to publish an example of the signal code, for use the Social Media plugin in the user interface.

Thanks in advance

ealmasy
Re: signal code for Social Media

I'm not sure if this is what you're asking about, but for the SocialMedia plugin to add the resource metadata to full record pages so that social media services (e.g. Facebook, Twitter, etc) will explicitly recognize the resource, you just need to signal EVENT_IN_HTML_HEADER somewhere between the <head> and </head> tags, like so:

    <?PHP $AF->SignalEvent("EVENT_IN_HTML_HEADER"); ?>

The StdPageStart.html file in the default interface (found in interface/default/include) does this.
 
If I've misunderstood the question please let me know, and we'll try to provide a more useful answer. :-)