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

structure, content, feature differences in new web editor

By
Barry Smoke
on 11/3/15, 7:41 AM 439 views

I've been developing my own bootstrap theme for odoo v9.  I ran into an issue where I had added all of my theme snippets as structure, since the theme tutorial doesn't really explain the differences.  After many hours of creating a website, getting the front page looking like I wanted, I went to edit a secondary page.  unfortunately the front page structure followed to my secondary page, because I had used the structure subsection.  After more troubleshooting, I discovered that structure seems to edit website.layout, and follow you to subsequent pages.  I should have used feature as my category.  feature snippets only stay on the page you are editing. Perhaps someone could fully document this?

Further exploration. It appears only the snippets I've added in my theme's snippets.xml file are the only ones that while in the structure tab, would merge into website.layout, following from page to page. The built-in snippets under structure don't seem to have that issue. I was able to add a default structure snippet, and it only added to the page I was working on. here is an example of one of my snippets:

<xpath expr="//div[@id='snippet_feature']/div[2]" position="inside">

Barry Smoke
on 11/3/15, 9:08 AM

well, ignore that, apparently you can't post code in a comment...this help forum leaves a lot to be desired.

Barry Smoke
on 11/3/15, 9:09 AM

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

1 follower(s)

Stats

Asked: 11/3/15, 7:41 AM
Seen: 439 times
Last updated: 11/3/15, 9:09 AM