*)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
pull/1/head
auron_x 19 years ago
parent 9cfb7a8fbe
commit 7b47055d6c

@ -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);

@ -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>
Loading…
Cancel
Save