ewg118/numishare

How to modify content on the index page?

Closed this issue · 2 comments

fgnm commented

I was looking to how modify the content on the index page for each collection in numishare.. In appears to be a method:

<xsl:choose>
<xsl:when test="string($lang)">
<xsl:choose>
<xsl:when test="string(//pages/index/content[@xml:lang=$lang])">
<xsl:copy-of select="//pages/index/content[@xml:lang=$lang]/*"/>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="count(//pages/index/content) &gt; 0">
<xsl:copy-of select="//pages/index/content[1]/*"/>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="//pages/index/*"/>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="count(//pages/index/content) &gt; 0">
<xsl:copy-of select="//pages/index/content[1]/*"/>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="//pages/index/*"/>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>

But there isn't any setting in collections admin, or at least I really can't see it.

There isn't a WYSIWYG editor for the content of the home page. You'd have to craft your own HTML and copy and paste it into the index element within the Numishare config.xml file within the eXist XML database.

fgnm commented

Aah okay, thanks it worked!