I'm creating a content editor web part that needs to point to the site collection root. Currently, for it's "Content Link" URL field, I have ../../SiteAssets/js/jquery-rotator/slider.txt
but this is inconvenient because if I'm in a publishing page such as /Pages/MyFolder/page.aspx, the path will have to be changed.
Is there a way to provide a path that always points to the site collection root's SiteAssets
folder? Thanks.
SPContent.Current.Site.RootWeb.Url + "/" + ContentLink
? – user2536 Oct 21 '11 at 8:01<% $SPUrl:~SiteCollection/ContentLink_Here %>
– user2536 Oct 21 '11 at 8:39