Hi, let me ask this question in a different way. If you've added static pages (a FAQ, an about page, etc.) to a DSpace site using xmlui, how did you go about it? Thanks!
--Hardy > -----Original Message----- > From: Pottinger, Hardy J. [mailto:[email protected]] > Sent: Wednesday, February 11, 2009 4:25 PM > To: [email protected] > Subject: [Dspace-tech] adding static pages to a DSpace site > using xmlui > > Hi, I am using DSpace 1.5.1, on a development instance running on my > Windows notebook, and I'm attempting to follow option #1 (XSL-based > method) from the Manakin theme tutorial on the wiki, for adding static > pages: > > http://wiki.dspace.org/index.php/Manakin_theme_tutorial#Adding > _static_pa > ges > > I will paste some code snippets below, but first the problem: when I > navigate to http://localhost:8080/xmlui/add, the body of the page is > blank, and the title of the page reads "Page not found". > > I'm sure I'm missing something obvious. I have confirmed that the file > "add.xml" is in a subfolder of the theme folder, called "pages". > > Any ideas? TIA. > > > Here's the override code for the main body template, which I'm using: > > <xsl:template match="dri:body"> > <div id="ds-body"> > > <ul id="ds-trail"> > [snip, not important] > </ul> > > <xsl:if > test="/dri:document/dri:meta/dri:pageMeta/dri:metada...@elemen > t='alert'] > [...@qualifier='message']"> > <div id="ds-system-wide-alert"> > [snip, not important] > </div> > </xsl:if> > > <!-- Check for the custom pages: add, about, help --> > > <xsl:choose> > <xsl:when > test="/dri:document/dri:meta/dri:pageMeta/dri:metada...@elemen > t='request > ']...@qualifier='URI']='add'"> > <xsl:copy-of select="document('pages/add.xml')" /> > </xsl:when> > <xsl:when > test="/dri:document/dri:meta/dri:pageMeta/dri:metada...@elemen > t='request > ']...@qualifier='URI']='about'"> > <xsl:copy-of > select="document('pages/about.xml')" /> > </xsl:when> > <xsl:when > test="/dri:document/dri:meta/dri:pageMeta/dri:metada...@elemen > t='request > ']...@qualifier='URI']='help'"> > <xsl:copy-of select="document('pages/help.xml')" /> > </xsl:when> > <!-- Otherwise use default handling of body --> > <xsl:otherwise> > <xsl:apply-templates /> > </xsl:otherwise> > </xsl:choose> > > </div> > </xsl:template> > > And here's the very basic pages/add.xml file I'm using: > > <h1 xmlns="http://di.tamu.edu/DRI/1.0/" style="font-size: 200%;" > class="ds-div-head">Add to MOspace</h1> > <div id="file_news_div_news" class="ds-static-div primary"> > <p class="ds-paragraph">more content coming soon...</p> > </div> > > -- > HARDY POTTINGER <[email protected]> > University of Missouri Library Systems > http://lso.umsystem.edu/~hardy/ > "No matter how far down the wrong road you've gone, > turn back." --Turkish proverb > > -------------------------------------------------------------- > ---------------- > Create and Deploy Rich Internet Apps outside the browser with > Adobe(R)AIR(TM) > software. With Adobe AIR, Ajax developers can use existing > skills and code to > build responsive, highly engaging applications that combine > the power of local > resources and data with the reach of the web. Download the > Adobe AIR SDK and > Ajax docs to start building applications > today-http://p.sf.net/sfu/adobe-com > _______________________________________________ > DSpace-tech mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/dspace-tech > ------------------------------------------------------------------------------ _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech

