A new XSLT utility, “Facebook Like Utility” is now available for download. Comments and feedback can be left here but if you discover any issues, please post it on the issue tracker.

Nice work.

Just a tip; I think you need to add two namespaces in the html tag for it to work in some IE versions.

xmlns:og="" xmlns:fb=""

(Scratched my head a while with that one.)

I would like to add a like button to multiple article teasers on a page. How to make the url-to-like dynamic, instead for having to specify url?

Oh, thats an easy thing. Just use:

<xsl:call-template name="facebook-like"> <xsl:with-param name="url-to-like" select="$current-url"/> </xsl:call-template>

Screenshot ?

If i have on homepage five(or more) articles and for each article i want to add "Like Button". Can i get article link regardless of the url?

UPD: ok, i solved this issue:

  <xsl:with-param name="url-to-like" select="concat('',title/@handle),'/'"/>

Facebook Like Utility updated to version 1.0.1 on 22nd of December 2012

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details