improved documentation for tagging (news, events) and country pages

svn path=/branches/design/; revision=19169
This commit is contained in:
nicoulas
2011-01-13 10:33:35 +00:00
parent 75cc2f1188
commit b5875a4ed0
2 changed files with 28 additions and 28 deletions

View File

@@ -0,0 +1,24 @@
= Implementing a country page =
Implementing a country page won't take you long. England and Germany
country pages are a good example of what and how you can achieve easily.
You could start by copying one of these pages, and change the countrycode
variable to your country code:
<xsl:variable name="country-code">xx</xsl:variable>
== Using the country-people-list template ==
- copy the call to the country-people-list template from your favorite
country page
- add the 'xx' tag to corresponding people in /about/people/people.en.xml
e.g. <person id="mueller" member="yes" teams="main, de">
== Fetch news, events ==
- to display news or events for your country, see "Using Tagging » Using the
fetch-news/fetch-events template" in tools/xsltsl/tagging-documentation.txt

View File

@@ -1,32 +1,5 @@
= Implementing a country page =
Implementing a country page won't take you long. England and Germany
country pages are a good example of what and how you can achieve easily.
You could start by copying one of these pages, and change the countrycode
variable to your country code:
<xsl:variable name="country-code">xx</xsl:variable>
Here after are some specificities.
== Using the country-people-list template ==
- copy the call to the country-people-list template from your favorite
country page
- add the 'xx' tag to corresponding people in /about/people/people.en.xml
e.g. <person id="mueller" member="yes" teams="main, de">
== Fetch news, events ==
- to display news or events for your country, see "Using Tagging » Using the
fetch-news/fetch-events template"
= Using tagging =
@@ -67,4 +40,7 @@ work the same way. Here are some addings:
- the "display-details" parameter says if 'yes' or 'no' you will have
the details of each event displayed along with its date and title
<xsl:with-param name="display-details" select="'yes'" />
<xsl:with-param name="display-details" select="'yes'" />