140 lines
4.6 KiB
HTML
140 lines
4.6 KiB
HTML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
<html>
|
|
<version>1</version>
|
|
|
|
<head>
|
|
<title>Documentation - Tagged news and events, country pages</title>
|
|
</head>
|
|
<body class="article" microformats="h-entry">
|
|
|
|
<p id="category"><a href="/contribute/web/">Webmastering</a></p>
|
|
<h1 class="p-name">Documentation: Tagged news and events, country pages</h1>
|
|
|
|
<div class="e-content">
|
|
|
|
<p id="introduction" class="p-summary">
|
|
As you can see on <a href="/uk/uk.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>Basic instructions</h2>
|
|
|
|
<p>
|
|
A tag key should be in lowercase and not contain any spaces, colons, and slashes. So for instance, the key for the tag “very important subject” should be <code>very-important-subject</code>.
|
|
The content of the tag should be translated and human readable, because it will be shown on certain pages. For instance, if you tag a page about the Windows Tax.
|
|
</p>
|
|
|
|
<pre class="file">
|
|
<tag key="windows-tax">Windows Tax</tag>
|
|
</pre>
|
|
|
|
<h2>Tag pages, news and events</h2>
|
|
|
|
<p>For most pages (when your file has the <var>xhtml</var>), the tags must be added within <html> </html> usually at the end.</p>
|
|
|
|
<p>
|
|
A list of tags currently in use can be found <a href="/tags/tags.html">here</a>.
|
|
We also have a list of <a href="/tags/tagged.html">all tagged pages, events and news</a>. <strong>Please check these pages first</strong> to avoid making duplicated tags, use existing tags if possible to keep things consistent.
|
|
</p>
|
|
|
|
<ul>
|
|
<li>For certain news item the tags must be within <news> </news> if your file has the <var>xml</var> extension:</li>
|
|
</ul>
|
|
|
|
<pre class="file">
|
|
<news>
|
|
[...]
|
|
<tags>
|
|
<tag key="front-page"/>
|
|
<tag key="swpat">Software Patents</tag>
|
|
<tag key="novell">Novell</tag>
|
|
</tags>
|
|
</news>
|
|
</pre>
|
|
|
|
<ul>
|
|
<li>For events, within <event> </event>:</li>
|
|
</ul>
|
|
|
|
<pre class="file">
|
|
<event>
|
|
[...]
|
|
<tags>
|
|
<tag key="front-page"/>
|
|
<tag key="it">Italy</tag>
|
|
</tags>
|
|
</event>
|
|
</pre>
|
|
|
|
<p>Please note that only events and news items being tagged as <var>front-page</var>
|
|
will appear on the front page of fsfe.org!</p>
|
|
|
|
<p>
|
|
Tag keys should all be written in English; there is no need for translation
|
|
since they do not appear online, but are used internally for
|
|
filtering news items or events.
|
|
</p>
|
|
|
|
|
|
<h3>Tagging author, date and download files</h3>
|
|
|
|
<p>
|
|
In order to give proper credits to the authors of articles you can add
|
|
tags like these:
|
|
</p>
|
|
|
|
<pre class="file">
|
|
<author>
|
|
<name>John Doe</name>
|
|
<link>http://johndoe.me</link>
|
|
<avatar>http://johndoe.me/me.png</avatar>
|
|
</author>
|
|
|
|
<!-- For FSFE team members, you can take the information directly
|
|
from /about/people/people.en.xml, for instance: -->
|
|
<author id="gerloff" />
|
|
|
|
<date>
|
|
<revision content="2010-03-24" />
|
|
<original content="2009-11-27" />
|
|
</date>
|
|
|
|
<!-- Feel free to add more than one revision tag if see fit -->
|
|
|
|
<download type="pdf" content="/link/to/download-file.pdf" />
|
|
</pre>
|
|
|
|
<p>
|
|
Bear in mind that these tags should be included like any other tags, that means they should be at the end, before </html>
|
|
</p>
|
|
|
|
</div>
|
|
<!--/e-content-->
|
|
|
|
</body>
|
|
<sidebar promo="about-fsfe">
|
|
<div id="related-content">
|
|
<h3>Other howtos:</h3>
|
|
<ul>
|
|
<li>
|
|
<a href="/contribute/web/css.html">Edit the CSS with LESS</a>
|
|
</li>
|
|
<li>
|
|
<a href="/contribute/template.html">A template article, to use the new webdesign</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</sidebar>
|
|
<timestamp>$Date: 2010-07-07 05:16:55 +0200 (Wed, 07 Jul 2010) $ $Author: hugo $</timestamp>
|
|
</html>
|
|
<!--
|
|
Local Variables: ***
|
|
mode: xml ***
|
|
End: ***
|
|
-->
|