本文整理匯總了C#中Nop.Core.Domain.Forums.Forum.GetSeName方法的典型用法代碼示例。如果您正苦於以下問題:C# Forum.GetSeName方法的具體用法?C# Forum.GetSeName怎麽用?C# Forum.GetSeName使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Nop.Core.Domain.Forums.Forum
的用法示例。
在下文中一共展示了Forum.GetSeName方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: AddForumTokens
public virtual void AddForumTokens(IList<Token> tokens, Forum forum)
{
//TODO add a method for getting URL (use routing because it handles all SEO friendly URLs)
var forumUrl = string.Format("{0}boards/forum/{1}/{2}", GetStoreUrl(), forum.Id, forum.GetSeName());
tokens.Add(new Token("Forums.ForumURL", forumUrl, true));
tokens.Add(new Token("Forums.ForumName", forum.Name));
//event notification
_eventPublisher.EntityTokensAdded(forum, tokens);
}
示例2: PrepareForumRowModel
protected virtual ForumRowModel PrepareForumRowModel(Forum forum)
{
var forumModel = new ForumRowModel
{
Id = forum.Id,
Name = forum.Name,
SeName = forum.GetSeName(),
Description = forum.Description,
NumTopics = forum.NumTopics,
NumPosts = forum.NumPosts,
LastPostId = forum.LastPostId,
};
return forumModel;
}
示例3: AddForumTokens
public virtual void AddForumTokens(IList<Token> tokens, Forum forum)
{
//TODO add a method for getting URL (use routing because it handles all SEO friendly URLs)
var forumUrl = string.Format("{0}boards/forum/{1}/{2}", _webHelper.GetStoreLocation(false), forum.Id, forum.GetSeName());
tokens.Add(new Token("Forums.ForumURL", forumUrl, true));
tokens.Add(new Token("Forums.ForumName", forum.Name));
}