在 DotNetNuke 中以编程方式添加页面标签

发布于 2024-10-10 07:44:49 字数 117 浏览 4 评论 0原文

我正在 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 技术交流群。

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

发布评论

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

评论(1

回心转意 2024-10-17 07:44:49

尝试使用 DotNetNuke.Entities.Content.ContentController 根据选项卡的 ContentItemId 获取 ContentItem 实例。然后,您可以添加到 Terms 列表并使用 ContentController 更新内容项。

Try using a DotNetNuke.Entities.Content.ContentController to get a ContentItem instance based on the tab's ContentItemId. You can then add to the Terms list and use the ContentController to update the content item.

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