Skip to Content

Contributors

AW: Snippet examples

Hi Torvald,

 

You can check this repo to get some inspiration: https://github.com/OCA/website/ There are a couple of great examples for building snippets.

 

Furthermore there is a talk about ‘How to develop Building Blocks’ today at 5 pm CET live @ odoo xp.

 

I hope this helps. Don’t forget the issue and PR for your new snippet in the github repo.

 

warm Regards

 

Ben

 

Benjamin Brich
Humanitarian Logistics Organisation e.V. (HLO)
Phone: +49 40 228686751
Cell: +49 160 97467007
b.brich@humanilog.org

Winsbergring 2
22525 Hamburg
Germany

www.humanilog.org


by Benjamin Brich - 11:16 - 1 Oct 2020

Reference

  • Snippet examples
    Hi

    This might be the wrong email list but pointers appreciated...

    Working on a small website project and one requirement is making a page with some airbnb properties. So I was adding the HTML from Airbnb for each one, but it is cumbersome so I wanted to make a snippet where one could edit the description and the property ID. But I have not been able to find a working description of how to create a snippet for the website builder, let alone one that has editable properties like that. An alternative to adding each property as a snippet would be to make a domain object with the info and then display that on a page, but have not come across any easy examples of web views for that either...

    Torvald Baade Bringsvor
    Bringsvor Consulting AS - Consulting and Odoo implementor

    Tel (+47) 4548 2848

    by Torvald Bringsvor - 10:56 - 1 Oct 2020