Sharepoint Help!

367 Views | 2 Replies | Last: 9 yr ago by Kyle98
Kyle98
How long do you want to ignore this user?
AG
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:

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!!
Kyle98
How long do you want to ignore this user?
AG
Nevermind, figured it out. Changed the code to:

<a href="<SPS_SERVER>/{@FileRef}">

and it works correctly
Echoes97
How long do you want to ignore this user?
AG
Glad you got your issue worked out. Just wanted to reply that if you need any further SP help, questions, etc., feel free to PM or email me as I have a pretty good amount of experience w/ 2007, 2010, and 2013 versions.

Good luck!

-Jason

txaggies at gmail
Us And Them - The Pink Floyd Experience
http://www.usandthemband.net
Kyle98
How long do you want to ignore this user?
AG
Thanks! Will do
Refresh
Page 1 of 1
 
×
subscribe Verify your student status
See Subscription Benefits
Trial only available to users who have never subscribed or participated in a previous trial.