开发者

Add Page Tags Programatically in DotNetNuke

开发者 https://www.devze.com 2023-02-03 00:58 出处:网络
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

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 pa开发者_运维知识库ge when I am adding a new page (tab).


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消