Browse Source

added doc on tagged news/events and country pages

svn path=/branches/design/; revision=19172
pull/8/head
nicoulas 12 years ago
parent
commit
e12f0e7636
  1. 87
      contribute/web/tagging.en.xhtml

87
contribute/web/tagging.en.xhtml

@ -0,0 +1,87 @@
<?xml version="1.0" encoding="UTF-8" ?>
<html>
<head>
<title>Documentation - Tagged news and events, country pages</title>
</head>
<body>
<p id="category"><a href="/contribute/">Contribute</a></p>
<h1>Documentation - Tagged news and events, country pages</h1>
<p id="introduction">
As you can see on <a href="/about/gb/gb.en.html">the UK page</a>,
it is possible to display news or events that have a special tag,
e.g. a country code.
This helps setting up pages easily with specific news items or events.
The list of people displayed on this same page has also been automated,
so it makes it easy to implement your own country page.
</p>
<h2>Tagged news and events</h2>
<h3>Using the fetch-news template</h3>
<ul>
<li>
the "tag" parameter defines what news will be displayed. If you are
building up a country page, this is your country code. Leave blank
if you wish to receive news items with any tags.
</li>
</ul>
<p class="terminal"><text>&lt;xsl:with-param name="tag" select="'<var>your tag</var>'"/&gt;</text></p>
<ul>
<li>
the "nb-items" parameter determines how many news items will be displayed
</li>
</ul>
<p class="terminal"><text>&lt;xsl:with-param name="nb-items" select="'<var>x</var>'" /&gt;</text></p>
<h3>Using the fetch-events template</h3>
<p>
fetch-events works in a very similar manner to fetch-news, tag and nb-items
work the same way. Here are some addings:
</p>
<ul>
<li>
the "wanted-time" parameter defines what events you want to see, "past",
"present" or "future"
</li>
</ul>
<p class="terminal"><text>&lt;xsl:with-param name="wanted-time" select="'<var>time</var>'" /&gt;</text></p>
<ul>
<li>
the "header" parameter determines the text that will be displayed on top
of your block of events (used e.g. on events/events.xsl)
possible values, 'future', 'current' or 'past'
</li>
</ul>
<p class="terminal"><text>&lt;xsl:with-param name="header" select="'<var>time</var>'" /&gt;</text></p>
<ul>
<li>
the "display-details" parameter says if 'yes' or 'no' you will have
the details of each event displayed along with its date and title
</li>
</ul>
<p class="terminal"><text>&lt;xsl:with-param name="display-details" select="'<var>yes|no</var>'" /&gt;</text></p>
</body>
<timestamp>$Date: 2010-07-07 05:16:55 +0200 (Wed, 07 Jul 2010) $ $Author: hugo $</timestamp>
</html>
<!--
Local Variables: ***
mode: xml ***
End: ***
-->
Loading…
Cancel
Save