Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

SharePoint:ScriptLink and SharePoint:CSSRegistration

  Asked By: Claude    Date: Jun 10    Category: Sharepoint    Views: 12410

Much in the same way you can do a CSSRegistration relative to the
context of a collection:

<SharePoint:CSSRegistration name="<% $SPUrl:~SiteCollection/Style
Library/~language/Core Styles/body_text.css%>" runat="server"/>

I would also like to do a ScriptLink as follows

<SharePoint:Scriptlink runat="server" Name="[Collection]/js/Library"
Language="javascript" />

But I keep getting the error

Cannot make a cache safe URL for "~/js/ImageChange/imageChange.js", file
not found. Please verify that the file exists under the layouts

Can someone please tell me why this is?

If the best way is to copy my custom javascript file into _layouts...
can this be done from within a feature?



No Answers Found. Be the First, To Post Answer.

Didn't find what you were looking for? Find more on SharePoint:ScriptLink and SharePoint:CSSRegistration Or get search suggestion and latest updates.

Related Topics:


Related Post