Sharepoint 基础知识和任何有用的资源?
很抱歉将 3 个问题合而为一,但它们密切相关,对于熟悉的人来说应该很简单。
我习惯于编写 Java/Obj C/PHP 代码,并且发现尝试修改模板有点烦人,部分原因是它没有意义,但大多数情况下我找不到资源。
我正在编辑主模板并已经掌握了基础知识,但有些事情仍然暗示着我。
对于ContentPlaceHolders,有没有办法多次使用它?有人发布了一些关于如何执行此操作的代码,但它说我无法在这里使用代码。
有没有办法在不使用 Sharepoint 设计器的情况下修改这些 ContentPlaceHolders ?
我认为使用 SharePoint: 标签是解决此问题的一种可能方法,但我找不到任何有关可能的标签以及它们的用途和使用位置的文档。
感谢您的任何帮助。
Sorry about having 3 questions in one but they are closely related and should be simple for someone familiar.
I'm used to coding Java/Obj C/PHP and am finding trying to modify a template somewhat annoying partly because it doesn't make sense but mostly I can't find resources.
I am editing a master template and have gotten the basics but some things still allude me.
With the ContentPlaceHolders, is there a way to use it more than once? Someone posted some code about how you can do this but it said I couldn't use code here.
Is there a way to modify these ContentPlaceHolders without using Sharepoint designer?
I thought using the SharePoint: tag would be a possible way around this, but I can't find any docos on the possible tags and what they do and where to use them.
Thanks for any help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
母版页中的 ContentPlaceHolder 仅映射到页面/页面布局中的一个内容部分。
是的,您可以使用代码修改ContentPlaceHolder的内容,构建控制树。
SharePoint 标记前缀用于表示不同的控件命名空间,但没有 sharepoint:placeholder
也许如果您解释一下您要做什么,我们也许可以为您提供最佳方法的建议。
A ContentPlaceHolder in a master page only maps to one Content section in a page/page layout.
Yes, you can modify the contents of ContentPlaceHolder using code, building a control tree.
The SharePoint tag prefix is used to signify a different control namespace, but there is no sharepoint:placeholder
Maybe if you explain what you are trying to do, we might be able to advise you the best way.