On Tue, Aug 21, 2012 at 4:11 AM, Nemiz, Elvi S. <[email protected]> wrote:
> How can I render the dri:body in a lightbox effect without the head, option
> and footer? I have succeeded in creating the lightbox effect but I just want
> the body to show, without the header, navigation and footers.

Hi Elvi,

override these templates in your theme. Copy them over as they appear
in your parent theme and wrap their contents in the xsl:if clause.

    <xsl:template name="buildHeader">
        <xsl:if
test="/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='request'
and @qualifier='queryString'] = 'content-only'">
<!-- put the original contents of this template here -->
        </xsl:if>
    </xsl:template>

    <xsl:template name="buildFooter">
        <xsl:if
test="/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='request'
and @qualifier='queryString'] = 'content-only'">
<!-- put the original contents of this template here -->
        </xsl:if>
    </xsl:template>

    <xsl:template match="dri:options">
        <xsl:if
test="/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='request'
and @qualifier='queryString'] = 'content-only'">
<!-- put the original contents of this template here -->
        </xsl:if>
    </xsl:template>

Now you should be able to access the modified page by calling:

http://example.com/handle/123456789/123?content-only

Regards,
~~helix84

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to