fsfe-website/fsfe.org/news
Ana Galan 5685ee8c8d
All checks were successful
continuous-integration/drone/pr Build is passing
adding mastodon link and changing image
2025-01-24 11:36:21 +01:00
..
2001 Remove autogenerated files that got committed at some point 2024-08-26 09:48:06 +02:00
2002 Remove autogenerated files that got committed at some point 2024-08-26 09:48:06 +02:00
2003 Remove autogenerated files that got committed at some point 2024-08-26 09:48:06 +02:00
2004 Remove autogenerated files that got committed at some point 2024-08-26 09:48:06 +02:00
2005 Remove autogenerated files that got committed at some point 2024-08-26 09:48:06 +02:00
2006 Remove autogenerated files that got committed at some point 2024-08-26 09:48:06 +02:00
2007 Remove autogenerated files that got committed at some point 2024-08-26 09:48:06 +02:00
2008 Remove autogenerated files that got committed at some point 2024-08-26 09:48:06 +02:00
2009 Remove autogenerated files that got committed at some point 2024-08-26 09:48:06 +02:00
2010 Redirect links and fix sources 2024-08-26 17:02:24 +02:00
2011 fixing link 2025-01-23 10:44:07 +01:00
2012 Redirect links and fix sources 2024-08-26 17:02:24 +02:00
2013 Redirect links and fix sources 2024-08-26 17:02:24 +02:00
2014 Remove autogenerated files that got committed at some point 2024-08-26 09:48:06 +02:00
2015 Redirect links and fix sources 2024-08-26 17:02:24 +02:00
2016 Redirect links and fix sources 2024-08-26 17:02:24 +02:00
2017 Remove autogenerated files that got committed at some point 2024-08-26 09:48:06 +02:00
2018 fixing link 2025-01-23 10:44:07 +01:00
2019 fixing link 2025-01-23 10:44:07 +01:00
2020 Remove autogenerated files that got committed at some point 2024-08-26 09:48:06 +02:00
2021 Remove autogenerated files that got committed at some point 2024-08-26 09:48:06 +02:00
2022 Remove autogenerated files that got committed at some point 2024-08-26 09:48:06 +02:00
2023 fixig device neutrality tags 2025-01-23 13:49:10 +01:00
2024 adding press tag to some news items to they are also in the Press section 2025-01-08 11:05:47 +01:00
2025 adding mastodon link and changing image 2025-01-24 11:36:21 +01:00
news/podcast/transcript
nl fixig device neutrality tags 2025-01-23 13:49:10 +01:00
podcast SFP fix typo 2025-01-23 12:27:33 +01:00
archive-template.en.xhtml
default.xsl
fsfe-news.png
Makefile feat/build-improvements-2 (#4553) 2024-10-29 14:56:41 +00:00
news.ca.xhtml
news.cs.xhtml
news.da.xhtml
news.de.xhtml update archive links 2025-01-13 15:26:45 +01:00
news.el.xhtml
news.en.xhtml update archive links 2025-01-13 15:26:45 +01:00
news.es.xhtml
news.et.xhtml
news.fi.xhtml
news.fr.xhtml
news.hr.xhtml
news.hu.xhtml
news.it.xhtml update archive links 2025-01-13 15:26:45 +01:00
news.nb.xhtml
news.nl.xhtml update archive links 2025-01-13 15:26:45 +01:00
news.pt.xhtml
news.ro.xhtml
news.rss.xsl
news.ru.xhtml
news.sl.xhtml
news.sources Fix dynamic content sources 2024-08-26 09:48:06 +02:00
news.sq.xhtml
news.sr.xhtml
news.sv.xhtml
newsletter.de.xhtml
newsletter.en.xhtml
newsletter.es.xhtml
newsletter.fr.xhtml
newsletter.it.xhtml
newsletter.nl.xhtml
newsletter.sources Fix dynamic content sources 2024-08-26 09:48:06 +02:00
newsletter.xsl Fix locations of built xsl files 2024-08-26 09:48:05 +02:00
podcast-opus.en.xhtml
podcast-opus.rss.xsl
podcast-opus.sources Fix dynamic content sources 2024-08-26 09:48:06 +02:00
podcast.en.xhtml
podcast.nl.xhtml
podcast.rss.xsl Fix locations of built xsl files 2024-08-26 09:48:05 +02:00
podcast.sources Fix dynamic content sources 2024-08-26 09:48:06 +02:00
README
xhtml2xml.xsl

Adding news
===========

There are two ways to add news to the web pages:

**1**
Add an xml file with the following structure in the appropriate
directory.

<?xml version="1.0" encoding="UTF-8"?> (you can choose an other encoding)

<newsset>
  <news date="date">
    <title>Text</title>
    <body>
      Text
    </body>
    <link>link</link>
  </news>
</newsset>


Put this file in the directory /news/this_year/
There's a naming convention for these xml files:

  'news-'newsdate'-'counter'.'language_part'.xml'

(eg: the English version of the first news file on the 4th November of
2008 should be named news-20081104-01.en.xml and the file should go in
the /news/2008/ directory)

**2**
Add an xhtml file in the appropriate directory.

Write an ordinary xhtml file. Add the newsdate="date" attribute in the
xhtml tag. The first <p> element will be copied into the xml file.

(eg:

<?xml versio ...

<html newsdate="2008-10-07" link="link" >  (link attribute is optional)

<head>
	<title>This is the title of the news item</title>
</head>

<body>

<p>This is the paragraph that will be copied into the xml file. <p>

<p>This is a paragraph that will not be copied.</p>

....

</html>

The link in the generated xml file will default to the original
page. If you want it to link to another page then you can use the
link attribute in the html tag.


You can freely choose a name for this file and you should put it in the
/news/this_year/ directory or in the directory of the project it
belongs to (/projects/project_name/), so you can keep all pages of one
project together.

The xml files for these xhtml files are generated automatically.  The
xml file will exist as long as the xhtml file exists. If you want to
change the xhtml file but keep the xml file unchanged, just remove the
newsdate attribute from the xhtml file. (eg: this can be a way to
announce a new project, it will generate an xml file that links to the
index page of the project, and it leaves the option open to change the
page afterwards and keep the original announcement).