|
Just recently, we had a question: "How do I add Facebook Like Buttons to all my Joomla Articles?" Usually I would say "You need a 'Content Plugin'". This is the best way for 'Non Programmers' to make this happen. I am sure that there are someone out there in Joomla! land has developed something that lets you drop custom html (or in this case xfbml) into articles.
For those of you who would like to try something different and "get your fingers dirty" I recommend the following (and let me know how it goes): - Figure out which template you are using and see if it already has a file folder called com_content in the html folder of the template, i.e /joomla_root/templates/[YOUR TEMPLATE]/html/com_content
- If not, create it and add a folder called article. i.e. i.e /joomla_root/templates/[YOUR TEMPLATE]/html/com_content/article
- Alter the existing 'default.php' (if it is there) or copy the /components/com_content/views/article/tmpl/default.php to this new /article folder. You can drop the <fb:like></fb:like> tags any where you like in this layout file and it will show up in every article.
- That's it! Just fiddle with the layout placemen.
Example (Should look something like the comment box ): <style> #fblikebuttonarticle{ float: right: padding: 10px
}
</style>
<div id="fblikebuttonarticle"> <fb:comments></fb:comments>
</div>
Cheers, hope this work for you! Cameron @ MMI
|