Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Working with the Website Blog module

By
Lucas Huber
on 5/12/16, 11:30 AM 725 views

Is there anybody using the blog module and is happy with it? How do you use it?

In my case I like the outcome, but the creation of a blog post is a real hassle. Normally I use a text program to write a blog and copy and paste it into the web application. But this does not work in Odoo, or results in sometimes strange behavior. For example I can't paste text into a table. With a normal Odoo webpage I do often use the HTML editor as workaround or to fix wrong layouts. But the blog module does not allow the use of the HTML editor. So I have to retype any table word by word into my blog and broken layouts are sometimes impossible to fix.


Any suggestions are welcome to improve this situation. 

1

Jérémy Kersten (jke)

--Jérémy Kersten (jke)--
2993
| 3 2 5
Jodoigne, Belgium
--Jérémy Kersten (jke)--

Jérémy is a member of the core R&D team since september 2013. He developed several projects for OpenERP version 8 including the eCommerce, the Google Calendar synchronization and the new product variants/configurator. Now, he manages Odoo website and themes for saas.

Jérémy Kersten (jke)
On 5/12/16, 12:37 PM

Hello,

You cannot use the html editor because it is an html field on blog post model and not an ir.ui.view.

But if your really want paste your html code directly or just text, you can always add the field 'content' in the form view (of model blog post) in the backend. 


Thanks a lot Jérémy, this is very good solution

Lucas Huber
on 5/13/16, 5:06 AM
0
Lucas Huber
On 5/13/16, 5:13 AM

I did ad the content field to the blog.post model form view "blog.post.form" but strangely the html field does always over shoot the width of the form sheet. It is still usable but not nice. I don't have an idea why, because I often use html fields and never experierenced such behavior.

<notebook>
     <page name="content" string="Blog content">
             <field name="content" style="width: 600px"/>
     </page>
     <page name="technical" string="Technical" groups="base.group_no_one">
           <group string="Technical" groups="base.group_no_one">
                 <field name="write_uid" context="{'default_groups_ref': ['base.group_user',                 'base.group_partner_manager', 'base.group_website_designer']}"/>    
                 <field name="write_date"/>
         </group>
     </page>
 </notebook>

I did try to avoid this in adding style="width: 600px" or widget="html".

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 5/12/16, 11:30 AM
Seen: 725 times
Last updated: 5/13/16, 5:13 AM