sharepoint 2010 站点地图重复节点 url
有没有办法禁用节点上的链接?
例如,我想禁用“仪表板”菜单项/节点,即在网站上单击它不会执行任何操作。
这可能吗?
谢谢,
KS
<?xml version="1.0" encoding="utf-8" ?>
<siteMap>
<siteMapNode title="" url="">
<siteMapNode title="BI Home" url="/Home.aspx"/>
<siteMapNode title="Scorecards" url="/Scorecards.aspx">
<siteMapNode title="Performance Scorecard" url="/Perfomance-Card.aspx"/>
<siteMapNode title="Quality Scorecard" url="/Quality-Card.aspx"/>
<siteMapNode title="Service Scorecard" url="/Service-Card.aspx"/>
<siteMapNode title="Financial Operations Scorecard" url="/FinancialOps-Card.aspx"/>
</siteMapNode>
<siteMapNode title="Dashboards">
<siteMapNode title="Executive Dashboard" url="/Executive-Dash.aspx"/>
<siteMapNode title="Operational Scorecard" url="/Operational-Card.aspx"/>
</siteMapNode>
<siteMapNode title="Manual Entry">
<siteMapNode title="Labor Hours" url="/Labor-Hours.aspx"/>
<siteMapNode title="Lost Time Accidents" url="/Lost-Time-Accidents.aspx"/>
<siteMapNode title="Action Items" url="/Action-Items.aspx"/>
</siteMapNode>
<siteMapNode title="Reports" url="/Reports.aspx"/>
</siteMapNode>
</siteMap>
Is there any way at all to disable a link on a node?
For example, I would like to disable the "Dashboards" menu item/node, ie, clicking on it on the site will do nothing.
Is this possible?
thanks,
KS
<?xml version="1.0" encoding="utf-8" ?>
<siteMap>
<siteMapNode title="" url="">
<siteMapNode title="BI Home" url="/Home.aspx"/>
<siteMapNode title="Scorecards" url="/Scorecards.aspx">
<siteMapNode title="Performance Scorecard" url="/Perfomance-Card.aspx"/>
<siteMapNode title="Quality Scorecard" url="/Quality-Card.aspx"/>
<siteMapNode title="Service Scorecard" url="/Service-Card.aspx"/>
<siteMapNode title="Financial Operations Scorecard" url="/FinancialOps-Card.aspx"/>
</siteMapNode>
<siteMapNode title="Dashboards">
<siteMapNode title="Executive Dashboard" url="/Executive-Dash.aspx"/>
<siteMapNode title="Operational Scorecard" url="/Operational-Card.aspx"/>
</siteMapNode>
<siteMapNode title="Manual Entry">
<siteMapNode title="Labor Hours" url="/Labor-Hours.aspx"/>
<siteMapNode title="Lost Time Accidents" url="/Lost-Time-Accidents.aspx"/>
<siteMapNode title="Action Items" url="/Action-Items.aspx"/>
</siteMapNode>
<siteMapNode title="Reports" url="/Reports.aspx"/>
</siteMapNode>
</siteMap>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,所以我选择了第二好。什么是第二好?
好吧,我将主菜单项设置为其下方第一个选项的 URL 相同。
但我听到你说站点地图节点中不能有重复的网址!
通过将查询字符串参数附加到 url 末尾来绕过此问题。
我像这样更改了仪表板:
不是很优雅,但对于我的场景来说是可以接受的
Ok, so I settled for second best. What is second best?
Well, I set the main menu item to the same url as the first option beneath it.
But you cannot have duplicate urls in the sitemap nodes I hear you say!
Bypassed this by appending a querystring parameter to the end of the url.
I changed dashboards like so:
Not very elegant but it is acceptable for my sce