Ir al contenido
Odoo Menú
  • Identificarse
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • TPV para tiendas
    • TPV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en directo
    • eLearning
    Cadena de suministro
    • Inventario
    • Fabricación
    • PLM
    • Compra
    • Mantenimiento
    • Calidad
    Recursos Humanos
    • Empleados
    • Reclutamiento
    • Ausencias
    • Evaluación
    • Referencias
    • Flota
    Marketing
    • Marketing social
    • Marketing por correo electrónico
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyecto
    • Partes de horas
    • Servicio de campo
    • Servicio de asistencia
    • Planificación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Conocimientos
    • WhatsApp
    Aplicaciones de terceros Studio de Odoo Plataforma de Odoo Cloud
  • Industrias
    Comercio al por menor
    • Librería
    • Tienda de ropa
    • Tienda de muebles
    • Tienda de ultramarinos
    • Ferretería
    • Juguetería
    Alimentación y hostelería
    • Bar y taberna
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidor de bebidas
    • Hotel
    Inmueble
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión inmobiliaria
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Empresa contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Fabricación
    • Textil
    • Metal
    • Muebles
    • Alimentos
    • Brewery
    • Regalos de empresas
    Salud y bienestar
    • Club deportivo
    • Óptica
    • Gimnasio
    • Terapeutas
    • Farmacia
    • Peluquería
    Oficios
    • Handyman
    • Hardware y asistencia informática
    • Sistemas de energía solar
    • Zapatero
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin ánimo de lucro
    • Agencia de protección del medio ambiente
    • Alquiler de paneles publicitarios
    • Estudio fotográfico
    • Alquiler de bicicletas
    • Distribuidor de software
    Browse all Industries
  • Comunidad
    Aprender
    • Tutoriales
    • Documentación
    • Certificaciones
    • Formación
    • Blog
    • Podcast
    Potenciar la educación
    • Programa de formación
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtener el software
    • Descargar
    • Comparar ediciones
    • Versiones
    Colaborar
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Convertirse en partner
    • Services for Partners
    • Registrar tu empresa contable
    Obtener servicios
    • Encontrar un partner
    • Encontrar un asesor fiscal
    • Contacta con un experto
    • Servicios de implementación
    • Referencias de clientes
    • Ayuda
    • Actualizaciones
    GitHub YouTube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicitar una demostración
  • Precios
  • Ayuda

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

  • CRM
  • e-Commerce
  • Contabilidad
  • Inventario
  • PoS
  • Proyecto
  • MRP
All apps
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Ayuda

ODOO 14 Blog : showing author and time of publication

Suscribirse

Reciba una notificación cuando haya actividad en esta publicación

Se marcó esta pregunta
blogwebsite
2 Respuestas
3844 Vistas
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
Mejor respuesta

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 Mejor respuesta

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 :)

¿Le interesa esta conversación? ¡Participe en ella!

Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.

Inscribirse
Publicaciones relacionadas Respuestas Vistas Actividad
Importing articles to the blog Resuelto
blog website
Avatar
Avatar
2
jun 22
4176
How to display last blogpost title in home page?
blog website
Avatar
Avatar
Avatar
2
feb 16
4971
Blog page translation - automatic translation not working anymore Resuelto
website_builder blog website
Avatar
Avatar
Avatar
2
oct 25
733
Odoo blog cover image not showing Resuelto
blog website 10
Avatar
1
jul 24
8255
How to restrict users to only be able to edit their own blog posts Resuelto
blog website access rights
Avatar
Avatar
Avatar
3
jun 24
3709
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento Odoo.sh
  • Ayuda
  • Actualizar
  • Desarrollos personalizados
  • Educación
  • Encontrar un asesor fiscal
  • Encontrar un partner
  • Convertirse en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contacta con nosotros
  • Puestos de trabajo
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Información legal • Privacidad
  • Seguridad
الْعَرَبيّة 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 es un conjunto de aplicaciones de código abierto que cubren todas las necesidades de tu empresa: CRM, comercio electrónico, contabilidad, inventario, punto de venta, gestión de proyectos, etc.

La propuesta única de valor de Odoo es ser muy fácil de usar y totalmente integrado.

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