Blog - Odoo 20 Community Book

Writing a Blog Post

Starting the Post

A post is started from the list Website > Site > Content > Blog Posts. The list opens with the filter of the current website, and it has the columns Title, Website URL, Author, Tags, SEO optimized, Visible on current website, Scheduled and Website. Two icons at the top right switch between the list and a kanban view.

odoo Development

In the kanban view each post is a card with its title, its blog, the date, the picture of the author and the switch Published. A post that belongs to one website only shows the name of that website on its card.

odoo Development

The button New opens the small window New Blog Post. The same window opens from the button New of the Website application, with the choice Blog Post, and it can take a few seconds to appear the first time. Title is the headline of the article, and the letters EN show that it can be translated. Select Blog is the blog where the article will be published. The field shows the first blog of the list at the start, so it must be changed when the article belongs to another blog. A click on the field lists all the blogs, and Search more lists them in a window.

odoo Development odoo Development

A click on Save creates the post and opens it on the website, in the same layout that the visitors will see. The page shows the path All Blogs, the name of the blog and the title, the author with the share buttons and a large cover. The post starts as Unpublished: the switch at the top of the bar says so, and nobody outside the company can open the page yet. The button Blog Post at the top right opens the form of the post in the back end, which is explained in section 5.

odoo Development

Writing in the Editor

The button Edit opens the editor on the post. The title, the subtitle and the body are written directly on the page. A click on the title puts the cursor in it, a click on the gray word Subtitle lets a sentence be typed under the title, and the body starts with the sample line Start writing here, which is deleted and replaced by the article. The right side of the editor shows the panel that is described in section 4.3.

In the body, a slash on an empty line opens a menu of the things that can be written. The group Format has Heading 1, Heading 2 and Heading 3, Text and Quote, and the menu goes on with more choices. A keyboard shortcut is shown on the right of each line, for example two hash signs for Heading 2.

odoo Development

The headings of the article feed the box On this page at the right of the body. It lists the headings as links, and the visitors use it to jump to a part of a long article. Before the first heading is written the box says that there are no titles in the blog post.

odoo Development

A new article is full of small choices, so it is useful to know that the button Discard of the editor asks for a confirmation. The window says that all the changes will be lost for good and offers the buttons Discard changes and Keep editing.

odoo Development

The Style Panel of a Post

When the title or the body of the post is selected, the tab Style of the editor shows the group Blog Page. It holds everything that is special to a blog post.

odoo Development

Tags. The tags of the article. A click on the selector lists all the tags, and a click on a tag adds it. Each chosen tag appears in its own line with a red minus sign that removes it, and a new selector appears under the last tag.

odoo Development

Breadcrumb. Shows or hides the path All Blogs, blog and title above the title.

Style. The place of the title and the cover. Title Above Cover puts the title above the large picture. Split Cover puts the title and the cover side by side. Title Inside Cover writes the title over the cover.

odoo Development

In Split Cover the title, the subtitle, the tags, the author and the share buttons are in a column at the left, the cover is in a frame at the right, and a small link with the name of the blog replaces the path. In Title Inside Cover the title is written in white over the cover and the path moves under it, so this style needs a dark or colorful picture to stay readable.

odoo Development odoo Development

Tags, Author and Share Links under Style. Show or hide the tags, the author and the share buttons under the title.

Full Width Cover. Stretches the cover picture to the full width of the screen.

Container Size. The width of the text. Small gives a narrow column that is easy to read, Regular is wider and Full uses the whole width. The help icon says that it adapts the size of the post page.

Content: Share Links and Tags. Show or hide the share buttons and the tags at the end of the article.

Comments. Lets the visitors write comments under the article. It is off at the start. When it is on, a small counter with the number of comments appears next to the share buttons, and the split cover shows the words 0 Comment.

Bottom and Recommended Post. Bottom shows a block at the end of the article that leads to the next article. The selector Recommended Post, with the help text Promote a post, chooses a published article to suggest. It shows an article of the same blog until another one is chosen. A click on the selector lists the published articles of all the blogs, with a search field and the choice Search more, and a button next to the selector resets the choice to the default article.

odoo Development

The recommended article appears at the end of the post under the heading Recommended, as a card with a small picture of its cover, its title, its subtitle and its date.

odoo Development

Sidebar. The column at the right of the text. It can show Author, Table of Contents, Share Links, Tags, Blogs List and Archive. Only Table of Contents is on at the start.

The cover of the post is a picture or a color, and a click on it selects it so that its background can be changed in the panel. The author, the date and the number of views are not typed in the editor. They come from the person who created the post and from the form of the post.

Publishing and Managing Posts

An article is shown to visitors when it is published. The switch in the top bar of the post, which reads Unpublished or Published, does it with one click. The same switch is in the form of the post and in the kanban view of the list. The date of the publication is the date that the visitors see under the title. When the post is published for the first time, Odoo writes a message on the blog, and the followers of the blog receive it.

Posts are also managed in groups from the list. A tick in front of a row, or in the header of the list, selects the posts, and the bar then shows the number of posts that are selected and the button Actions.

odoo Development

The Actions menu has Export, Publish, Unpublish, Duplicate, Archive, Unarchive and Delete. Publish and Unpublish change the visibility of all the selected posts at once. Duplicate makes a copy that is not yet published. The copy has the same blog, tags and text, its title ends with the word copy in brackets, and its address ends with copy.

odoo Development odoo Development

Archive asks for a confirmation with the question Are you sure that you want to archive all the selected records, and an archived post is unpublished at the same time and leaves the list.

odoo Development

The archived posts are found again with the search panel. A small button at the right end of the search box opens it. The panel has the filter Archived, the filters of the websites, Custom Filter, the groupings Blog, Author and Last Contributor, and the favorites. With the filter Archived on, the list shows only the archived posts. The action Unarchive brings the selected posts back at once, without a question. They return to the list as unpublished posts, so each one must be published again.

odoo Development odoo Development

Export opens the window Export Data, which saves the selected posts as a spreadsheet. The left side lists the fields that are available, with a search box and the switch Updatable fields only, and the right side lists the Fields to export, which are Title, Website URL, Author, Tags, SEO optimized, Visible on current website, Auto publish on and Website at the start. A template can be chosen or saved, and the format is an Excel workbook.

odoo Development

Delete removes the selected posts for good. Odoo opens the same window as for the pages of the website. It asks if you are sure, because the posts will be gone forever, and it reports whether any link on the site refers to them. The buttons are Delete and No, keep it.

odoo Development

Translating a Post

When the website has a second language, the articles can be translated like any other page. A post that is opened in the new language shows the standard words in that language, such as the path Tous les blogs and the date written as 13 novembre 2026, while the title, the subtitle and the text stay in the original language until they are translated.

odoo Development

In the new language the button Edit offers Translate. In the translation mode each text of the post is highlighted. A click on the title selects it, the translation is typed over it, and the text turns green. The path above the title changes as the title is typed. The button Save keeps the translation.

odoo Development

After saving, the page of all the articles in the new language lists the post under its translated title, with the dates in the new language. The names of the filter buttons come from the names of the blogs, and the teasers stay in the original language until they are translated too.

odoo Development
WhatsApp