在 DotNetNuke 中以编程方式添加页面标签
我正在 dotnetnuke 中创建一个新选项卡,但我也想为我的选项卡(页面)添加标签。我不知道如何完成这个任务。我使用了分类法类,但在该类中我们可以定义标签,但我想在添加新页面(选项卡)时以编程方式为我的页面添加标签。
I am creating a new tab in dotnetnuke but I also want to add tags for my tab (pages). I don't know I how to accomplish this task. I have use taxonomy class but in that class we can define tags but I want to add tags programatically for my page when I am adding a new page (tab).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试使用
DotNetNuke.Entities.Content.ContentController
根据选项卡的ContentItemId
获取ContentItem
实例。然后,您可以添加到Terms
列表并使用ContentController
更新内容项。Try using a
DotNetNuke.Entities.Content.ContentController
to get aContentItem
instance based on the tab'sContentItemId
. You can then add to theTerms
list and use theContentController
to update the content item.