jvasile / Planeteria

Multiple Blog Planet Site

Home Page:http://planeteria.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Admin front end should populate via OPML import

jvasile opened this issue · comments

Whenever possible, we should be emitting and accepting standard blocks. Currently, we populate the feeds in the admin interface by prepopulating a javascript function that formats the feed rows in a table. We should instead, grab the opml file, parse it and pass that to the display function.

This issue depends on issue #28.

This xslt template might help:

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="/">
    <xsl:for-each select="opml/body/outline">
new_feed('<xsl:value-of select="@xmlUrl"/>', '<xsl:value-of select="@xmlUrl"/>', '<xsl:value-of select="@text"/>', '', '<xsl:value-of select="@imageUrl"/>', '','');
<br />
    </xsl:for-each>
</xsl:template>
</xsl:stylesheet>