Although syndication requests without an affiliate ID are allowed, by including an affiliate ID you have the opportunity to be approached by SitePoint to become a Premium Syndication Partner. If you don't already have one, please create a new affiliate account.
This document describes the simplest and most straightforward method
for syndicating listings from the
More sophisticated techniques are discussed in the Advanced Syndication help guide.
To syndicate latest listings, use the following code:
af value with your own affiliate ID.
Here's an example of the default output:
The example above is for syndicating latest listings in all categories; you can also syndicate listing from single categories, using a different URL for each category. For example, the syndication URL for the Script & Software category looks like this:
To specify any category, simply replace
in that example with the key of the category you want. Here's a list of all the category keys:
The script will generate an
iframe, which is
250px wide and 500px tall, with automatic scrolling if necessary,
and no border.
You can modify the appearance of the
iframe with your own
CSS, but not the content
inside it. So a number of additional parameters are provided to control
the content's appearance. These can be specified using either
a query parameter in the
script src, for example:
Or defined in a separate script, which must come before the main
script include, for example:
For all parameters, the syntax always takes the form
property=value in a query string, or
sitepoint object before defining any parameters, as shown in the example above.
Here's another example using some additional parameters: