Ok, so our Sharepoint guy left a few weeks ago, so I'm learning by being tossed into the deep end. Mostly, I've been managing to stay afloat, but I've run into an issue today that I'm having a problem solving. We have a department here that manages a Training Schedule through Sharepoint. When you click on a class in the calendar, it brings up the DispForm.aspx for the course with all the course details, including a link to any course materials that have been uploaded by the instructor. That link is where the problem is. The link is showing:
http://<SERVER>/pbclassreg/TS/Lists/Courses/pbclassreg/TS/Course%20Materials/<FILE>.ppt
The actual link to the file is:
http://<SERVER>/pbclassreg/TS/Course%20Materials/<FILE>.ppt
I found in the code where the link is coming from, but my knowledge of ASP is just about zero (I'm a sysadmin, not a developer). Here's the code:
The @FileRef variable is declared in the <DataFields> section as: @FileRef,URL Path
I can't see where it actually comes from, or where the extra /pbclassreg/TS/Lists/Courses/ is getting added to the URL.
Any help from the Sharepoint gurus out there would be greatly appreciated!!
http://<SERVER>/pbclassreg/TS/Lists/Courses/pbclassreg/TS/Course%20Materials/<FILE>.ppt
The actual link to the file is:
http://<SERVER>/pbclassreg/TS/Course%20Materials/<FILE>.ppt
I found in the code where the link is coming from, but my knowledge of ASP is just about zero (I'm a sysadmin, not a developer). Here's the code:
quote:
<xsl:template name="GetCourseMaterials">
<xsl:param name="Rows" />
<xsl:choose>
<xsl:when test="count($Rows) <= 0">
None provided <em>(instructors, <a href="../../Course Materials/Forms/Upload.aspx">upload here</a>)</em>
</xsl:when>
<xsltherwise>
<ol>
<xsl:for-each select="$Rows">
<li>
<a href="{@FileRef}">
<xsl:value-of select="@Title" />
</a>
</li>
</xsl:for-each>
</ol>
</xsltherwise>
</xsl:choose>
</xsl:template>
The @FileRef variable is declared in the <DataFields> section as: @FileRef,URL Path
I can't see where it actually comes from, or where the extra /pbclassreg/TS/Lists/Courses/ is getting added to the URL.
Any help from the Sharepoint gurus out there would be greatly appreciated!!