Blogs

The community blogs of an Energine 2.13 site with demo content, with a list of posts, page navigation and a calendar
Energine 2.13 with demo content — blogs (interface in Russian)

Blogs belong to users. An administrator creates a blog for a user; its owner writes posts on the site, visitors read them and signed-in users comment.

In the admin

  • «Блоги» (Blogs, /admin/blogs/) — «Название блога» (Blog name) and the blog's owner.
  • «Записи блогов» (Blog posts, /admin/blogs/posts/) — every post with its «Дата публикации» (Publication date). A post with a future date appears on that date — for everyone, its owner included.
  • «Комментарии блогов» (Blog comments, /admin/blogs/comments/).

On the site

/blogs/ shows all posts, newest first, with a calendar of the days that have posts; a blog's posts are at /blogs/blog/<id>/, a post with its comments at /blogs/post/<id>/. The owner of a blog sees «Новая запись» (New post) and edits their posts; an administrator edits any. A user with several blogs writes into the first of them. A post's text goes through a filter that removes scripts, frames, styles and event attributes. Posts have no translations: one text for all languages. Signed-in users comment; guests read.

The component is Energine\blog\components\BlogPost with the params showCalendar and recordsPerPage; its template, blog_post.content.xml, also places a banner of the place center and the comments.

Data

blog_title, blog_post and blog_post_comment. The demo content adds three blogs of demo users.