Blog

Odoo Blog allows you to create and manage blog posts on your website to engage your audience and build a community.

Tip

If the Blog module is not yet installed, click +New on the website builder, select Blog Post, and click Install.

Creating a blog

To create or edit a blog, go to Website ‣ Configuration ‣ Blogs: Blogs. Click New, and enter the Blog Name and the Blog Subtitle.

The Blog menu item is added to your website’s menu the first time you create a blog and gathers all your blogs.

Adding a blog post

Go to your website, click +New in the top-right corner, and select Blog Post. In the pop-up, select the blog where the post should appear, write the post’s Title, and Save. You can then write the post’s content and customize the page using the website builder.

Tip

  • Illustrate your articles with copyright-free images from Unsplash.

  • Type / in the text editor to format and add elements to your text.

Important

Don’t forget to toggle the Unpublished switch in the top-right corner to publish your post.

Using tags

Tags let visitors filter all posts sharing the same tag. By default, they are displayed at the bottom of posts, but can also be displayed on the blog’s main page. To do so, click Edit ‣ Customize and enable the Sidebar. By default, the sidebar’s Tags List is enabled.

To create a tag, go to Website ‣ Configuration ‣ Blogs: Tags and click New. Fill in the:

  • Name

  • Category: tag categories let you group tags displayed on the sidebar by theme.

  • Used in: to apply the tag to existing blog posts, click Add a line, select the posts, and click Select.

You can add and create tags directly from posts by clicking Edit ‣ Customize and select the post’s cover. Under Tags, click Choose a record…, and select or create a tag.

screenshot: blog-blog-create-tag
menu
Website ‣ Blog ‣ (post) ‣ Edit
shows
The blog post editing panel with the Tags field and a tag being added from its drop-down menu.
highlight
The Tags field (red frame).
data
Blog 'News', post 'Product launch', tag 'Release'.
module
website_blog
notes
English UI, light theme, 1440px width.

Note

To manage tag categories, go to Website ‣ Configuration ‣ Blogs: Tag Categories.

Customizing blog homepages

Customize the content of blog homepages by opening a blog homepage and clicking Edit ‣ Customize.

Note

Settings apply to all blogs homepages.

Top Banner: Name/Latest Post displays the title of the latest post on the top banner, while Drop Zone for Building Blocks removes the top banner and lets you use any building block instead.

Layout: organizes posts as a Grid or List.

  • Cards: adds a card effect.

  • Increase Readability: improves the text’s readability.

Sidebar: displays a sidebar containing an About us section.

  • Archives: allows visitors to select a month and filter all posts created during that month.

  • Follow Us: displays links to your social media networks. They can be configured using the Social Media building block somewhere on your website.

  • Tags List: displays all tags related to a blog. Visitors can select a tag to filter all related posts.

Posts List: Cover displays the posts’ images, and No Cover hides them.

  • Author: displays the posts’ authors.

  • Comments/Views Stats: displays the posts’ number of comments and views.

  • Teaser & Tags: displays the posts’ first sentences and tags.

Customizing blog posts

Customize posts by opening a blog post and clicking Edit ‣ Customize.

Note

Settings apply to all posts.

Layout: Title Inside Cover displays the title inside the cover image, and Title above Cover displays it above.

  • Increase Readability: increases the text’s readability.

Sidebar: displays the Sidebar and additional options:

  • Archive: allows visitors to select a month and filter all posts created during that month.

  • Author: displays the post’s author and creation date.

  • Blog List: displays links to all your blogs.

  • Share Links: displays share buttons to several social networks.

  • Tags: displays the post’s tags.

Breadcrumb: displays the path to the post.

Bottom: Next Article displays the next post at the bottom, and Comments enable visitors to comment on the post.

Select To Tweet: visitors are offered to tweet the text they select.

Tip

Use Plausible to keep track of the traffic on your blog.

SEO of tag pages

The Blog Sitemap SEO module (website_blog_sitemap_seo) improves how search engines see the tag pages of your blogs:

  • Sitemap: the tag pages are added to /sitemap.xml, for the tags that have a Meta Title set and are used on published posts. The /feed addresses and /website/info are left out of the sitemap, but remain reachable.

  • Localized tag addresses: in a language other than the default one, the tag page is served with the tag name of that language in its address. The hreflang tags list the address of the tag page in each language of the website, with the tag name translated (see Hreflang HTML tags).

  • Redirects: opening a tag page with the tag name of another language (or an outdated one), for example /hu/blog/tag/<english-name>, redirects to the right address with one permanent (301) redirect that keeps the language prefix. The same applies when the blog name in the address is wrong as well.

Note

Tag pages with several tags at once (e.g., /tag/a,b) keep the standard Odoo behavior.

Contents landing page

By default, a blog’s landing page lists the posts in reverse chronological order, which suits news but not reference content such as a handbook or a knowledge base. The Blog Contents Landing module (website_blog_contents) replaces that list with a generated table of contents.

Enable it per blog under Website ‣ Configuration ‣ Blog ‣ Blogs, with the Contents Landing option. The blog header designed in the website editor stays above the generated tree. The other options are:

  • Contents Sort and Contents Sort Direction: the order of the posts within a section — by Title, Publishing date, Created on, Last Updated on, Published Date or by internal ID, ascending or descending.

  • Show Teaser: shows each post’s teaser or subtitle under its title.

  • Grouping Levels: the tag categories used as nested grouping levels, in order. With the category Chapter as the first level and Section as the second, the contents page is grouped into chapters and, inside them, into sections. Leave it empty to simply list every published post in the sort order.

  • Section Order: the order of the sections on the page, set by dragging. This writes the sequence of the corresponding tags.

screenshot: blog-blog-contents-landing-settings
menu
Website ‣ Configuration ‣ Blog ‣ Blogs ‣ (blog)
shows
A blog record with the Contents Landing option enabled, the Contents Sort and sort direction fields, the Show Teaser option, the Grouping Levels list and the Section Order list.
highlight
The Contents Landing option and the Grouping Levels list (red frame).
data
Blog "Handbook" grouped by the tag categories "Chapter" and "Section".
module
website_blog_contents
notes
English UI, light theme, 1440px width.
screenshot: blog-blog-contents-landing-page
menu
(website) ‣ Blog
shows
The generated contents landing page of a blog, with the chapters as headings, the sections under them and the post titles as links.
highlight
One chapter with its sections (red frame).
data
Blog "Handbook" with three chapters and about a dozen posts.
module
website_blog_contents
notes
English UI, light theme, 1440px width.

Note

Only published posts appear on the contents page, and posts scheduled for a future date are left out until their publishing date.