Odoo Help

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 484 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

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

About This Community

This platform 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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)

Stats

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