*)added Blog.xml for backup and exporting purposes, no importing at this time

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2177 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
auron_x 2006-06-05 10:34:27 +00:00
parent 9cfb7a8fbe
commit 7b47055d6c
2 changed files with 15 additions and 0 deletions

View File

@ -246,6 +246,7 @@ public class Blog {
prop.put("mode_entries_"+count+"_subject", wikiCode.replaceHTML(new String(entry.subject(),"UTF-8")));
prop.put("mode_entries_"+count+"_author", wikiCode.replaceHTML(new String(entry.author(),"UTF-8")));
prop.put("mode_entries_"+count+"_date", dateString(entry.date()));
prop.put("mode_entries_"+count+"_timestamp", entry.date().getTime());
prop.put("mode_entries_"+count+"_page", wikiTransformer.transform(entry.page()));
if(hasRights) {
prop.put("mode_entries_"+count+"_admin", 1);

14
htroot/Blog.xml Normal file
View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<blog>
#(mode)#
#{entries}#
<item>
<id>#[pageid]#</id>
<timestamp>#[timestamp]#</timestamp>
<author><![CDATA[#[author]#]]></author>
<subject><![CDATA[#[subject]#]]></subject>
<content><![CDATA[#[page]#]]></content>
</item>
#{/entries}#
#(/mode)#
</blog>