更改单击列表项时的操作

发布于 2024-07-27 02:05:51 字数 102 浏览 2 评论 0原文

我想在单击列表项/项目标题时更改目标 URL,这样它就不会发送我查看该项目,而是将我发送到基于该项目的不同 URL。 我不想替换链接列表,而是使用列表标题作为 URL 查询过滤器。 谢谢

I would like to change the destination URL when clicking on a list item / item title so it will no send me to view the item but will send me to a different URL base on the item.
I am not looking to replace the Links list but to use the list title as URL query filter.
Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

寻找我们的幸福 2024-08-03 02:05:51

您将需要使用 SharePoint 设计中的自定义页面/自定义视图页面来完成此操作。 请参阅 这篇文章介绍了如何使用 SPGridView 控件来实现它

You will need to do it using the custom Page / Customize the View Page in the SharePoint Designed. Please refer to this article on how you can achieve it using the SPGridView control

兮子 2024-08-03 02:05:51

我不太清楚你想做什么(也许屏幕截图模型会有帮助?),但这里有一些一般性建议。

如果您想更改控件的行为,请按照 kusek 的建议调查控件的属性。 如果这些属性不能满足您的需要,请尝试覆盖该控件以更改呈现的内容。

如果上述方法不起作用,或者您想要更改这些链接的呈现方式,无论它们出现在页面上的哪个位置,那么您需要查看页面级解决方案。 最常见的是 jQuery,它可以用 JavaScript 动态替换 URL,或者 HTTP 模块,它的级别要低得多,并且实际上会更改呈现到页面的 HTML。

希望这可以帮助。

I'm not totally clear on what you'd like to do (maybe screenshot mock ups would help?), but here's some general advice.

If you want to change the behaviour of a control then investigate the properties of the control as kusek has suggested. If the properties don't do what you need then try overriding the control to change what is rendered.

If the above doesn't work out or you want to change how these links render no matter where they appear on the page, then you need to look at a page-level solution. The most common are jQuery that can dynamically replace the URLs with JavaScript, or an HTTP module which is much more low level and will actually alter the HTML rendered to the page.

Hope this helps.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文