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

how to show events tags on the website of the events overview to filter the events listing

By
joachim grubelnik
on 9/22/16, 3:58 AM 122 views

Is ist possible to show the TAGS you can use on events in the events page itself to filter the events ? 

You can define TAGS at the event but i do not see them on the website somewhere ? 

http://172947-8-0-e083d7.runbot10.odoo.com/event

Tags as it is like in the BLOG Page where you can filter the BLOG Entries via the TAGS 

thanks 

0

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 9/22/16, 5:27 AM

You can easily display it on the event in qweb.

<div class='tags' t-foreach='event.tag_ids' t-as='one_tag'>
    <span class='label'><t-esc='one_tag'/></span>
</div>

But to add the filter, you need to override the controller from website_event

class website_event(http.Controller):
    @http.route(['/event', '/event/page/<int:page>'], type='http', auth="public", website=True)
    def events(self, page=1, **searches):
        // and add your custom code here

thanks man will try that

joachim grubelnik
on 9/22/16, 8: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

2 follower(s)

Stats

Asked: 9/22/16, 3:58 AM
Seen: 122 times
Last updated: 9/22/16, 5:27 AM