C# Class Daniel15.Web.Extensions.BlogUrlHelperExtensions

URL helpers for blog posts
Show file Open project: Daniel15/Website

Public Methods

Method Description
BlogCategory ( this urlHelper, Daniel15.Data.Entities.Blog.CategoryModel category, int page = 1 ) : string

Gets the URL to the specified blog category post listing

BlogCategory ( this urlHelper, string routeType, string slug, string parentSlug, int page = 1 ) : string

Gets the URL to the specified blog category post listing

BlogCategoryFeed ( this urlHelper, Daniel15.Data.Entities.Blog.CategoryModel category ) : string

Gets the URL to the specified blog category RSS feed

BlogIndex ( this urlHelper, int page = 1 ) : string

Gets the URL to the index of the blog

BlogPost ( this urlHelper, PostModel post ) : string

Gets a URL to the specified blog post

BlogPostAbsolute ( this urlHelper, PostModel post ) : string

Gets an absolute URL to the specified blog post

BlogPostEdit ( this urlHelper, PostModel post ) : string

Gets a URL to edit the specified blog post

BlogTag ( this urlHelper, Daniel15.Data.Entities.Blog.TagModel tag, int page = 1 ) : string

Gets the URL to the specified blog tagged post listing

BlogTag ( this urlHelper, string slug, int page = 1 ) : string

Gets the URL to the specified blog tagged post listing

Method Details

BlogCategory() public static method

Gets the URL to the specified blog category post listing
public static BlogCategory ( this urlHelper, Daniel15.Data.Entities.Blog.CategoryModel category, int page = 1 ) : string
urlHelper this The URL helper
category Daniel15.Data.Entities.Blog.CategoryModel Category to link to
page int Page number to link to
return string

BlogCategory() public static method

Gets the URL to the specified blog category post listing
public static BlogCategory ( this urlHelper, string routeType, string slug, string parentSlug, int page = 1 ) : string
urlHelper this The URL helper
routeType string Route type to link to (eg. "Category" or "CategoryFeed")
slug string Slug of the category
parentSlug string Slug of the parent
page int Page number to link to
return string

BlogCategoryFeed() public static method

Gets the URL to the specified blog category RSS feed
public static BlogCategoryFeed ( this urlHelper, Daniel15.Data.Entities.Blog.CategoryModel category ) : string
urlHelper this The URL helper
category Daniel15.Data.Entities.Blog.CategoryModel Category to link to
return string

BlogIndex() public static method

Gets the URL to the index of the blog
public static BlogIndex ( this urlHelper, int page = 1 ) : string
urlHelper this The URL helper
page int Page number to link to
return string

BlogPost() public static method

Gets a URL to the specified blog post
public static BlogPost ( this urlHelper, PostModel post ) : string
urlHelper this The URL helper.
post Daniel15.Data.Entities.Blog.PostModel Blog post to link to
return string

BlogPostAbsolute() public static method

Gets an absolute URL to the specified blog post
public static BlogPostAbsolute ( this urlHelper, PostModel post ) : string
urlHelper this The URL helper.
post Daniel15.Data.Entities.Blog.PostModel Blog post to link to
return string

BlogPostEdit() public static method

Gets a URL to edit the specified blog post
public static BlogPostEdit ( this urlHelper, PostModel post ) : string
urlHelper this The URL helper.
post Daniel15.Data.Entities.Blog.PostModel Blog post to link to
return string

BlogTag() public static method

Gets the URL to the specified blog tagged post listing
public static BlogTag ( this urlHelper, Daniel15.Data.Entities.Blog.TagModel tag, int page = 1 ) : string
urlHelper this The URL helper
tag Daniel15.Data.Entities.Blog.TagModel Tag to link to
page int Page number to link to
return string

BlogTag() public static method

Gets the URL to the specified blog tagged post listing
public static BlogTag ( this urlHelper, string slug, int page = 1 ) : string
urlHelper this The URL helper
slug string Slug of the tag
page int Page number to link to
return string