快速启动中的自定义导航链接不接受相关性 [英] Customised navigation links in quick launch do not accept relativ

查看:64
本文介绍了快速启动中的自定义导航链接不接受相关性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


hello


无法在自定义快速链接中提供相对URL,导致SharePoint网站导出/导入功能(包括内容)无效。当您导入"yoursite.cmp"时将文件放入新网站所有自定义导航链接指向旧的
网站。


以下是该方案:


  1. SP Foundation 2010(无特殊自定义,更新至2012年12月更新)
  2. 创建新的Wiki页面或为任何列表创建新视图
  3. 保存页面(或新视图)
  4. 转到网站设置 - >快速启动
  5. 创建新的导航链接
  6. 指定新创建的Wiki(或视图)的路径 [无论你如何在这里指定它,SP将其转换为绝对网址]
  7. 保存(链接在这里工作正常,没问题)。
  8. 导出的部位(包括内容)到yourexportedsitename.cmp(使用SP Admin界面或
    出口的SPWeb -identity {urltoyour} /位点/原-path c:\ temp \ original.cmp
  9. 在同一个集合下创建新网站(确保它与导出的网站具有相同的"类型"(例如,团队网站)或导入将无效)并给它一个名称(比如
    clonedsite
  10. 使用 import-spweb -identity 导入yourexportedsitename.cmp
    {urltoyour} / sites / clonedsite -path c:\ temp \ original.cmp
  11. {urltoyour} / sites / clonedsite  $ b $在SharePoint中打开新导入的网站b'/ strong>并检查快速链接。自定义链接仍然指向旧网站的
    {} urltoyour /sites/original/SitePages/MyNewWikiPage.aspx ?????

我试过亲带或不带正斜线,双点等的路径无济于事。在保存时,路径始终转换为绝对值,这使得站点无法通过导出/导入进行克隆。


但是,如果您将自定义维基页面声明为主页(或新创建的视图作为列表的默认视图),则自定义快速链接DO WORK在导入的网站中????


问题:为什么SharePoint不允许用户按原样保存自定义快速链接的输入路径,WITHOUT SP干扰并将其保存为绝对URL?如果保留,则可以使用导入的网站。


我们将非常感谢您对此的任何帮助


(是的,我知道你可以用代码或jscript调整这个,但我说的是通用,最终用户功能无法正常工作)

解决方案


解决方法是使用PowerShell脚本为快速启动链接设置相对网址:

 


站点= QUOT; HTTP:// SP /位点/团队/"

QuickLaunchHeading = QUOT;库和QUOT;

hello

Not being able to provide relative URLs in custom quick links renders SharePoint site export/import function (including content) useless. When you import "yoursite.cmp" file into a new site all customized navigation links point to the old site.

Here's the scenario:

  1. SP Foundation 2010 (no special customizations, updated to Dec2012 update)
  2. Create new wiki page or create a new view for any list
  3. Save the page (or the new view)
  4. Go to Site settings->Quick launch
  5. Create a new navigation link
  6. Specify the path to your newly created wiki (or view) [no matter how you specify it here, SP converts it into absolute url here]
  7. Save (links work OK here, no problem).
  8. Export the site (including content) to yourexportedsitename.cmp (using SP Admin interface or export-spweb -identity {urltoyour}/sites/original -path c:\temp\original.cmp)
  9. Create new site under the same collection (make sure it is of the same "type" as your exported site (say, Team site) or import will not work) and give it a name (say clonedsite
  10. Import yourexportedsitename.cmp using import-spweb -identity {urltoyour}/sites/clonedsite -path c:\temp\original.cmp
  11. Open your newly imported site in SharePoint at {urltoyour}/sites/clonedsite  and check the Quick links. Customized links still point to the OLD site {urltoyour}/sites/original/SitePages/MyNewWikiPage.aspx ?????

I have tried providing paths with or without forward slashes, double dots, etc to no avail. On save, path is always converted to absolute which renders site to be unusable for cloning via export/import.

However, if you declare your customized wiki page as your home page (or the newly created view as default view for the list), then customized quick links DO WORK in the imported site????

Question for Microsoft: Why doesn't SharePoint let the user save the entered path for a custom quick link as is, WITHOUT SP interfering and saving it as an absolute URL? If left as provided imported sites will work.

Any assistance with this will be greatly appreciated

(and yes, I know you can tweak this with code or jscript, but I am talking about generic, end user functionality that does not work properly)

解决方案

Hi,

A workaround is to use PowerShell script to set relative url for quick launch links:


site = "http://sp/sites/team/"


QuickLaunchHeading = "Libraries"


这篇关于快速启动中的自定义导航链接不接受相关性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆