From ab83aab0c93f4962f7de52f0b727d8dc88ecf3c8 Mon Sep 17 00:00:00 2001 From: astro Date: Thu, 27 Jul 2006 00:01:48 +0000 Subject: [PATCH] News-Archiv und Themenabende zu richtigen Seiten gemacht, benutzen nicht mehr standard-News-template mit globalen Variablen, sondern neues Element: xhtml.xsl-Entwirrung git-svn-id: svn://svn.c3d2.de/c3d2-web/trunk@481 31f61c52-7bfb-0310-b897-fc00f8a278f0 --- Makefile | 19 ++------- content/navigation.xml | 4 +- content/pages/news-archiv.xml | 10 +++++ content/pages/themenabende.xml | 10 +++++ content/static/style/default.css | 4 ++ dtd/c3d2web.dtd | 8 +++- xsl/xhtml.xsl | 70 +++++++++++++++++++++----------- 7 files changed, 83 insertions(+), 42 deletions(-) create mode 100644 content/pages/news-archiv.xml create mode 100644 content/pages/themenabende.xml diff --git a/Makefile b/Makefile index 19e0ac993..ca8760f3a 100644 --- a/Makefile +++ b/Makefile @@ -36,7 +36,7 @@ WWW_CCC_DE_UPDATES=chaosupdates.rdf ### Ziele ### # Dateinamen der zu erzeugenden html-Dateien: -CONTENT=$(PAGES) $(NEWS_PAGES) $(DS_PAGES) $(NEWSFILES) $(SEARCH_TMPL) $(DYNAMIC) +CONTENT=$(PAGES) $(NEWS_PAGES) $(DS_PAGES) $(NEWSFILES) $(SEARCH_TMPL) # 'normale' Seiten: PAGES:=$(patsubst content/pages/%.xml, build/%.html, $(wildcard content/pages/*.xml)) @@ -48,8 +48,6 @@ NEWSFILES:=build/news.html build/news-rss.xml build/news-atom.xml DS_PAGES:=$(patsubst content/datenspuren/%.xml, build/datenspuren/%.html, $(wildcard content/datenspuren/*.xml)) build/datenspuren/schedule.html # Suchseiten-Template SEARCH_TMPL:=build/cgi-bin/search.html -# Dynamische Seiten: -DYNAMIC:=build/themenabende.html build/news-archiv.html # Quellen NEWSITEMS:=$(wildcard content/news/*.xml) @@ -81,7 +79,7 @@ build/news-rss.xml : NOVALID_IGNORE:=true build/news-atom.xml : STYLE=xsl/atom.xsl build/news-atom.xml : NOVALID_IGNORE:=true -.INTERMEDIATE: news.xml +#.INTERMEDIATE: news.xml news.xml: $(NEWSITEMS) sh scripts/gen_news.xml.sh $^ > $@ @@ -89,7 +87,7 @@ $(NEWSFILES): news.xml $(NAVIGATION) $(STYLE) $(call xml_process) # Pages: -build/%.html: content/pages/%.xml $(STYLE) $(NAVIGATION) $(WWW_CCC_DE_UPDATES) +build/%.html: content/pages/%.xml $(STYLE) $(NAVIGATION) $(WWW_CCC_DE_UPDATES) news.xml $(call xml_process) # News: @@ -97,15 +95,6 @@ build/news/%.html : BASEURL="../" build/news/%.html: content/news/%.xml $(STYLE) $(NAVIGATION) $(WWW_CCC_DE_UPDATES) $(call xml_process) -# Dynamisches: -build/news-archiv.html : PFLAGS+=--stringparam pagetitle News-Archiv --stringparam newsbodies off -build/news-archiv.html: news.xml $(NAVIGATION) $(STYLE) - $(call xml_process) - -build/themenabende.html : PFLAGS+=--stringparam pagetitle Themenabende --stringparam newsbodies off --stringparam newscategory Themenabend -build/themenabende.html: news.xml $(NAVIGATION) $(STYLE) - $(call xml_process) - # Suche: build/cgi-bin/search.html : BASEURL="../" build/cgi-bin/search.html: content/cgi-bin/search.xml $(STYLE) $(NAVIGATION) @@ -129,4 +118,4 @@ $(WWW_CCC_DE_UPDATES): ### Mr. Propper ### .PHONY: clean clean: - rm -f $(CLEAN) + rm -f $(CLEAN) news.xml diff --git a/content/navigation.xml b/content/navigation.xml index 6ebaa5668..df0c19d56 100644 --- a/content/navigation.xml +++ b/content/navigation.xml @@ -1,12 +1,12 @@ - news + news whois kontakt mailingliste treff - themenabende + themenabende projekte wiki silc diff --git a/content/pages/news-archiv.xml b/content/pages/news-archiv.xml new file mode 100644 index 000000000..37c73b755 --- /dev/null +++ b/content/pages/news-archiv.xml @@ -0,0 +1,10 @@ + + + + + +

+ Alle C3D2-News kurzgefasst, neuere zuerst: +

+ +
diff --git a/content/pages/themenabende.xml b/content/pages/themenabende.xml new file mode 100644 index 000000000..8f6844892 --- /dev/null +++ b/content/pages/themenabende.xml @@ -0,0 +1,10 @@ + + + + + +

+ Wir veranstalten in zumeist regelmäßigen Abständen Abende zu bestimmten Themen. +

+ +
diff --git a/content/static/style/default.css b/content/static/style/default.css index 0e4acf7a1..00f21b835 100644 --- a/content/static/style/default.css +++ b/content/static/style/default.css @@ -312,6 +312,10 @@ dd { margin-left: 4em; } +ul.details_event { + list-style-type: none; +} + /* -- Search Engine -- */ div.search div.estform { margin: 0.8em 1.0em; padding: 0em 1.0em; diff --git a/dtd/c3d2web.dtd b/dtd/c3d2web.dtd index 6ce1f3207..4bcc715f0 100644 --- a/dtd/c3d2web.dtd +++ b/dtd/c3d2web.dtd @@ -2,7 +2,7 @@ - + + + + - - - - - @@ -26,9 +21,6 @@ - - - @@ -185,15 +177,13 @@ - + - -
vevent @@ -207,7 +197,6 @@ -
@@ -227,22 +216,17 @@

-
- -
-

Die Neuigkeiten des C3D2 sind auch als ATOM und RSS abrufbar. Mehr News gibts im Archiv.

-
@@ -250,16 +234,12 @@ - + + @ - - - - news_date - - + @@ -329,4 +309,46 @@ + + + + category + + + + + + + + +

+ + + +

+ + + + + + + +
    +
  • + + + , +
  • + +
  • + +
  • +
+
+
+
+
+
+
+