Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

ODOO 14 Blog : showing author and time of publication

Subscribe

Get notified when there's activity on this post

This question has been flagged
blogwebsite
2 Replies
3870 Views
Avatar
Corrado Topi

Dear all,

We are using the Blog on odoo 14 community to publish article. How can we make sure the author and time of publication are always shown at the bottom of the article?

Best Regards


1
Avatar
Discard
Avatar
Krys.Raj
Best Answer

Please provide some details:
- are you able to modificate xml code yourself? (some developers skills?)
- be sure that on the front page you have turn on showin Author (and Sidebar) 
->you must be logged in as editor/admin -> choose Customize from top -> select Author and Sidebar
- be more precise... you want to show the author block and date below instead of the sidebar?
- Enterprise version or Community of Odoo?

EDITED =====================
Thanks! Below the full answer for you.

Hello, ok, now I can help you...

A. If you like only to modify the template of the blogpost from Odoo backend.

1. Log in into backend
2. Activate developer mode (Bottom of the Settings page)
3. Go to Settings -> Technical -> find "Views" -> enter
4. search for "blog_post_content" -> open it
5. hit Edit -> modify the code like this:

paste below html block after the last </div> and before </t>


<div class="mt-3 d-flex justify-content-end">
<t t-call="website_blog.post_author">
<t t-set="additionnal_classes" t-value="'h5 d-flex align-items-center'"/>
</t>
</div>


So your full code looks like this:


<?xml version="1.0"?>
<t name="Blog post content" t-name="website_blog.blog_post_content">
<t t-if="opt_blog_post_breadcrumb and not opt_blog_post_regular_cover" t-call="website_blog.post_breadcrumbs">
<t t-set="additionnal_classes" t-value="'mb-3 bg-transparent'"/>
</t>
<div t-field="blog_post.content" data-editor-message="WRITE HERE OR DRAG BUILDING BLOCKS" t-attf-class="o_wblog_post_content_field #{'js_tweet' if opt_blog_post_select_to_tweet else ''} #{'js_comment' if opt_blog_post_select_to_comment else ''} #{'o_wblog_read_text' if opt_blog_post_readable else ''}"/>

<div t-if="len(blogs) > 1 or len(blog_post.tag_ids) > 0" class="css_editable_mode_hidden text-muted">
<div t-if="len(blogs) > 1">in <a t-attf-href="#{blog_url(blog=blog_post.blog_id)}"><b t-field="blog.name"/></a></div>
<div t-if="len(blog_post.tag_ids) > 0">#
<t t-foreach="blog_post.tag_ids" t-as="one_tag">
<a class="badge border mr-1 post_link" t-attf-href="#{blog_url(tag=slug(one_tag), date_begin=False, date_end=False)}" t-esc="one_tag.name"/>
</t>
</div>
</div>
<div class="mt-3 d-flex justify-content-end">
<t t-call="website_blog.post_author">
<t t-set="additionnal_classes" t-value="'h5 d-flex align-items-center'"/>
</t>
</div>
</t>

6. save it, and check now your post
7. Now on the front you can turn on "Author" showing in the sidebar via Customize menu
8 TIP: if you want to have your author on the left side, please change the class "justify-content-end" to "justify-content-start" for the custom block you pasted

B. If you have skills to create new module way
----------------------------------------------
1. create custom module
2. in template.xml wich you load from your manifest you have to put this code:


<template id="website_blog_post_author_custom" inherit_id="website_blog.blog_post_content" name="Blog post author name custom">
<xpath expr="//t[@name='Blog post content']" position="inside">
<div class="mt-3 d-flex justify-content-end">
<t t-call="website_blog.post_author">
<t t-set="additionnal_classes" t-value="'h5 d-flex align-items-center'"/>
</t>
</div>
</xpath>
</template>

3. install this module
4. TIP: if you want to have your author on the left side, please change the class "justify-content-end" to "justify-content-start" for the custom block you pasted
Hope this will help you and save you lot of time.
Please, vote + for my answer and i you find it Best, mark it "Best Answer", I will appreciate it.

Thanks, Krys


2
Avatar
Discard
Avatar
Corrado Topi
Author Best Answer

Answers below:

1) ODOO 14 community edition

2) author and sidebar are on

3) as said, we would like it to be at the bottom of the page

4) I am able to modify the XML code

Best,


Dear Krys, I wanted to give a positive vote to your answer, but the system says I do not have enough karma, I am really sorry.


1
Avatar
Discard
Krys.Raj

I have updated my answer for you... if this will help, please mark it as best answer and hit positive vote with arrow up. Thank you :)

Corrado Topi
Author

Dear Krys,

I am not allowed to comment or upvote your answer because I do not have sufficient karma! :-(

Best, 



-- 

Dr. Corrado Topi PhD (current working time zone: CET)

Co-chairman and CSO
Hausoos
Integrated Sustainability Solutions
Plot Nr.280-A, Road Nr. 10-C
Jubilee Hills,
Hyderabad,500033
Codice Europeo PIC: 896562853
TAN: HYDH05321B
 
Stockholm Environment Institute Affiliate, Asia Center (Bangkok, Thailand)
Vice-chairman, Stichting GreenEcoNet (Groningnen, The Netherlands) 
Visiting Research Fellow, The York Management School, University of York


On Wednesday, 17 November, 2021 18:44 CET, "Krys.Raj" <krys@railabo.com> wrote:
 
 

I have updated my answer for you... if this will help, please mark it as best answer and hit positive vote with arrow up. Thank you :)

Sent by Odoo S.A. using Odoo.


 
Krys.Raj

Ok, no problem, can you mark it as best answer? Of course if it is really the best answer :)

Krys.Raj

I have voted to your question - now you should have some carma :)

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
Importing articles to the blog Solved
blog website
Avatar
Avatar
2
Jun 22
4198
How to display last blogpost title in home page?
blog website
Avatar
Avatar
Avatar
2
Feb 16
5005
Blog page translation - automatic translation not working anymore Solved
website_builder blog website
Avatar
Avatar
Avatar
2
Oct 25
759
Odoo blog cover image not showing Solved
blog website 10
Avatar
1
Jul 24
8283
How to restrict users to only be able to edit their own blog posts Solved
blog website access rights
Avatar
Avatar
Avatar
3
Jun 24
3733
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now