I have a dataformwebpart that queries multiple document libraries. I need to open the document properties in a modal window. I have used the below

                <xsl:attribute name="href">
                <xsl:value-of select="@FileDirRef" />
                <xsl:value-of select="@ID" />
                <xsl:value-of select="$CurrentUrl" />
                ', '
                <xsl:value-of select="@FileLeafRef" />
                ', true, true, true)</xsl:attribute>

                <img width="16" height="16" class="ms-MenuUIULImg" src="/_layouts/images/EditItem.gif" alt="" title="" />

The problem is that @FileDirRef returns the path of the item inside its folder so the generated url is: /sitename/document library/folder name


('/DocumentCenter/Bonuses Documents/370; CRM5111/Forms/DispForm.aspx?ID=4') where (370; CRM5111) is the folder name.

In order to be able to open the document properties I must have the above path without the folder name, meaning: /sitename/document library/

eg: ('/DocumentCenter/Bonuses Documents/Forms/DispForm.aspx?ID=4')

Can anyone point into the right direction to implement this?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.