Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

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

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

ODOO 14 Blog : showing author and time of publication

Subscriure's

Get notified when there's activity on this post

This question has been flagged
blogwebsite
2 Respostes
3884 Vistes
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
Descartar
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
Descartar
Avatar
Corrado Topi
Autor 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
Descartar
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
Autor

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!

Registrar-se
Related Posts Respostes Vistes Activitat
Importing articles to the blog Solved
blog website
Avatar
Avatar
2
de juny 22
4207
How to display last blogpost title in home page?
blog website
Avatar
Avatar
Avatar
2
de febr. 16
5018
Blog page translation - automatic translation not working anymore Solved
website_builder blog website
Avatar
Avatar
Avatar
2
d’oct. 25
772
Odoo blog cover image not showing Solved
blog website 10
Avatar
1
de jul. 24
8307
How to restrict users to only be able to edit their own blog posts Solved
blog website access rights
Avatar
Avatar
Avatar
3
de juny 24
3743
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة 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 és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

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