Skip to content

BlogArticleUrl

The BlogArticleUrl object extended the Url object and represents a link to the blog article.

classDiagram
  direction LR
  BlogArticleUrl <|-- Url
  class Url{
  }
  class BlogArticleUrl{
  }

Examples

The object can return URLs in various formats depending on the setting selected in "Blog settings" on "Default post URL format" section.

For format "/:lang/n/:newsId":

source
{{ url.absolute }}
output
https://example.com/en/n/1 

For format "/:lang/n/:newsName/:newsId":

source
{{ url.absolute }}
output
https://example.com/en/n/new-article/1 

For format "/:lang/n/:newsYear/:newsName/:newsId":

source
{{ url.absolute }}
output
https://example.com/en/n/2022/new-article/1 

For format "/:lang/n/:newsYear/:newsMonth/:newsName/:newsId":

source
{{ url.absolute }}
output
https://example.com/en/n/2022/06/new-article/1 

For format "/:lang/n/:newsYear/:newsMonth/:newsName/:newsId":

source
{{ url.absolute }}
output
https://example.com/en/n/2022/06/20/new-article/1