This question has been flagged
1 Reply
3289 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 

Avatar
Discard
Best Answer

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
Avatar
Discard
Author

thanks man will try that