Dhanushka,

Looks like the URL you would need is https://example.com/xmlui/page/home <https://example.com/xmlui/home> not https://example.com/xmlui/home.

-Brett

On 3/7/12 2:14 PM, Dhanushka Samarakoon wrote:
Hi,
I followed the article below to add a static page to DSpace 1.8.
https://wiki.duraspace.org/display/DSPACE/Manakin+theme+tutorial#Manakinthemetutorial-Addingstaticpages
(Method 4)

But when I try to access the https://example.com/xmlui/home url, I'm getting a 'org.apache.cocoon.ResourceNotFoundException: Page cannot be found' error.
The example looks pretty straightforward, so what am I doing wrong here?
Thanks,
Dhanushka.


added the following code to Mirage/lib/xsl/core/page-structure.xsl
*****************************************************************************
<!-- Add the title in -->
<xsl:variable name="page_title" select="/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='title']" />
<title>
<xsl:choose>
<xsl:when test="not($page_title)">
<xsl:text> </xsl:text>
</xsl:when>
<xsl:when test="starts-with($request-uri, 'page/home')">
<xsl:text>K-REx Home Page</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="$page_title/node()" />
</xsl:otherwise>
</xsl:choose>
</title>

*************
<!-- The header (distinct from the HTML head element) contains the title, subtitle, login box and various
        placeholders for header images -->
<xsl:template name="buildTrail">
<div id="ds-trail-wrapper">
<ul id="ds-trail">
<xsl:choose>
<xsl:when test="count(/dri:document/dri:meta/dri:pageMeta/dri:trail) = 0">
<li class="ds-trail-link first-link">-</li>
</xsl:when>
<xsl:when test="starts-with($request-uri, 'page/home')">
<xsl:text>KREx Home</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="/dri:document/dri:meta/dri:pageMeta/dri:trail"/>
</xsl:otherwise>
</xsl:choose>
</ul>
</div>
</xsl:template>
**************
<!--
The template to handle the dri:body element. It simply creates the ds-body div and applies templates of the body's child elements (which consists entirely of dri:div tags).
    -->
<xsl:template match="dri:body">
<div id="ds-body">
<xsl:if test="/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='alert'][@qualifier='message']">
<div id="ds-system-wide-alert">
<p>
<xsl:copy-of select="/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='alert'][@qualifier='message']/node()"/>
</p>
</div>
</xsl:if>
<xsl:apply-templates />
<xsl:choose>
<xsl:when test="starts-with($request-uri, 'page/about')">
<div>
<h1>Home Page for KREx</h1>
<p>To add your own content to this page, edit webapps/xmlui/themes/dri2xhtml/structural.xsl and add your own content to the title, trail, and body.
  ....
</p>
</div>
</xsl:when>
</xsl:choose>
</div>
</xsl:template>


------------------------------------------------------------------------------
Virtualization&  Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/


_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to