Odoo Data Slider Snippet

New Release – Odoo Data Slider Snippet

= Odoo Website – Data Slider Snippet =

LasLabs has released a new [[https://www.odoo.com/|Odoo]] version 9 website snippet that provides a [[http://kenwheeler.github.io/slick/|SlickJS]] carousel for any dataset.

This module’s primary purpose, and default implementation, is to provide a product slider anywhere on your website. It didn’t make much sense to leave it at such a specific purpose, so it is possible to switch up the data if you so choose.

= Download =

`website_snippet_data_slider` is an Open Source Odoo module licensed under AGPL-3.

It is a part of the LasLabs Odoo `web` package, which can be found on the following sources:

* [[https://github.com/laslabs/odoo-website|GitHub]]

= Usage =

To use the Odoo Data Slider Snippet, you need to:

* Install `website_snippet_data_slider` module
* Drop `Data Slider` building block anywhere on your site
* Edit the configuration options to your liking
* Save
* Profit!

= Configuration =

Note that the Odoo Data Slider Snippet defaults to the `product.template` model, as most common
usage for this widget is likely a product carousel.

Odoo snippet settings Javascript king of got in the way when it came to allowing
easy choice of the data, aside from the simple options that were provided in the UI.

In order to further customize your snippet, go into HTML view and edit the
`data-options` attribute of the `section` element that serves as the snippet root.

Following are the settings that do not have configuration in the UI:

* `data_model` – Model name
* `data_domain` – Search domain for data
* `data_limit` – Limit query to this many results
* `data_image_field` – Field name to use for image
* `data_name_field` – Field to use for display name
* `data_title` – Text to use as main snippet header
* `data_title_tag` – HTML element type to use for title element (such as `h1`)
* `data_title_class` – Class to use for the title element
* `data_uri_prefix` – Path prefix for link. Record id will be added to it in context.


Posted

in

,

by

Comments

2 responses to “New Release – Odoo Data Slider Snippet”

  1. Cesar Avatar

    Hi Dave, will you please give me a light here?

    I did download the module and installed like is explained here and I do not see it anywhere in my odoo.
    It is installed but when I go to the website, edit and look in the blocks it does not appear there.

    When you say “Drop Data Slider building block anywhere on your site” you refer to do that ?

    May be I am missing something ?

    I really appreciate your help

    1. Dave Lasley Avatar

      Yeah that’s exactly what I meant with the drop anywhere on your site – sorry for the bad wording. The Data Slider will show up in the `Contents` section of the website widgets (Blocks) menu in Odoo 9.

      It looks to be working fine on our Runbot, so I’m thinking that this is possibly a local issue. Not sure what would cause that though, the injection to the blocks menu is fairly standard.

      Did you install the app through Github or the Odoo Apps store?

Leave a Reply to Dave Lasley Cancel reply

Your email address will not be published. Required fields are marked *