Secret Sauce offer interested website owners an easy way to get updated content on their web sites. Our JavaScript feed allows you to pull in the 10 latest items added here with very little effort at your end.
See an example of an unstyled feed »
Add the following at the top of your page, preferably in the the head. It is a call to a script on Secret Sauce that picks up the latest content ready to be styled for your web site:
<script type="text/javascript" src="http://secretsauce.co.uk/feeds/js/"> </script>
Put this code in your template where you want our links to appear. You can style this as much as you like to make it fit with the rest of your template. If you just want a basic format, copy and paste the following:
<script type="text/javascript">
//<![CDATA[
var i = '0';
for (i in teasers) {
document.writeln( '<h2><a href="' + teasers[i].url + '">' + teasers[i].title + '</a></h2>'
+ '<p>' + teasers[i].teaser + '<br />'
+ '<span class="small">Added on ' + teasers[i].date + '</span></p>' );
i++;
}
//]]>
</script>
You can control the number of returned results by adding to the code. The example below will return 10 results. The maximum you can return is 20:
<script type="text/javascript" src="http://secretsauce.co.uk/feeds/js/?number=10"> </script>
You can return results from a specific category using the example below:
<script type="text/javascript" src="http://secretsauce.co.uk/feeds/js/?cat=cat+name"> </script>
Do you buy organic food?