Monday, November 10, 2008

Dynamic tag cloud v1.2

A small update to the tag cloud to fix an issue with cross domain requests. The issue is caused by some RSS servers not having a crossdomain.xml file which is used by Flash and Silverlight to check if cross domain requests are allowed.

As a short term fix this version now proxies the request via figmentengine.com - in a later version we may need to be able to disable this (in the case where you want to host the silverlight app on your server)

So this now allows me to create tag cloud from other sites, such as the Guardian's Comment is free:





To insert into your blog use (under dashboard, layout, edit html, ensure that expand widget templates is checked).

Find the following:

<div id='sidebar-wrapper'>
<b:section class='sidebar' id='sidebar' preferred='yes'>

insert widget here


<b:widget id='Label2' locked='false' title='Dynamic Tag Cloud' type='Label'>
<b:includable id='main'>
<b:if cond='data:title'>
<h2><data:title/></h2>
</b:if>
<div class='widget-content' id='feCloud' style='text-align: center;'/>
<script src='http://www.figmentengine.com/tagCloud/feCloudv1.2.js' type='text/javascript'/>
<script type='text/javascript'>
var feCloudElementId = 'feCloud';
var feCloudFeedAddress = 'http://feedproxy.google.com/FigmentEngine';
var feCloudNavigateFormat = 'http://blog.figmentengine.com/search/label/{0}';
var feCloudSize = 400;
feTagCloudLoad(feCloudElementId, feCloudFeedAddress, feCloudNavigateFormat, feCloudSize, feCloudSize);
</script>
</b:includable>
</b:widget>


In order to start using this version, you need to change your javascript to reference v1.2 of the js file

1 comment:

Unknown said...

Where is the download?