CUSTOMIZE YOUR STREAM:
Only want to display training articles? Or only want to display
a certain series of articles? No problem. You can use the following
URL attributes to customize your News Stream.
All of these URL attributes can be used with both the ‘EASY’ stream
and the RSS stream.
Sections: To show only articles in a certain section of
FasterSkier.com, all it takes is adding a section=#
attribute after headlines.php.
If you want to show only News:
<script src="http://www.fasterskier.com/xml/headlines.php?section=1"
type="text/javascript">
</script>
If you want to show only Racing articles:
<script src="http://www.fasterskier.com/xml/headlines.php?section=2"
type="text/javascript">
</script>
If you want to show only Training articles:
<script src="http://www.fasterskier.com/xml/headlines.php?section=3"
type="text/javascript">
</script>
Feature Series: Want to display a certain series of Feature
Articles? Use the series attribute:
<script src="http://www.fasterskier.com/xml/headlines.php?series=1"
type="text/javascript">
</script>
Using series = 1, as shown here, will display articles from
the "The Hunt For Gold By Bjorn Daehlie" series. Browse
all the Feature Series on this page.
Description: By default, the News Stream displays only the
title of each article. But if you want to display a short introduction
for each article as well, use the desc=1 attribute:
<script src="http://www.fasterskier.com/xml/headlines.php?desc=1"
type="text/javascript">
</script>
If desc equals anything other than ‘1’ , the description will not
be displayed.
Limit: By default, the News Stream displays the six (6)
most recent articles. But if you want to display a different number
of articles, use the limit attribute:
<script src="http://www.fasterskier.com/xml/headlines.php?series=1&limit=10"
type="text/javascript">
</script>
This will display the most recent 10 articles in the Bjorn Daehlie
series.
Target: If your website uses frames, or if you want the
FasterSkier articles to open in a new window, you can use the target
attribute.
<script src="http://www.fasterskier.com/xml/headlines.php?target=_blank"
type="text/javascript">
</script>
This attibute works in exactly the same way as the HTML target attribute
does. You can put target=whateveryouwant
in the URL string.
|