Skip to content

Commit 4648461

Browse files
dabo-odooged-odoo
authored andcommitted
Slides forum page option plugin
1 parent acaeb09 commit 4648461

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<templates xml:space="preserve">
3+
4+
<t t-name="website_slides_forum.slidesForumOption">
5+
<BuilderRow label.translate="Separate Courses" level="1">
6+
<BuilderCheckbox action="'websiteConfig'" actionParam="{views: ['website_slides_forum.website_slides_forum_index']}"/>
7+
</BuilderRow>
8+
</t>
9+
10+
</templates>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import { Plugin } from "@html_editor/plugin";
2+
import { registry } from "@web/core/registry";
3+
import { _t } from "@web/core/l10n/translation";
4+
5+
class SlidesForumOptionPlugin extends Plugin {
6+
static id = "slidesForumOption";
7+
resources = {
8+
builder_options: [
9+
{
10+
template: "website_slides_forum.slidesForumOption",
11+
selector: "main:has(#o_wforum_forums_index_list)",
12+
editableOnly: false,
13+
title: _t("Slides Forum Snippet Options"),
14+
groups: ["website.group_website_designer"],
15+
},
16+
],
17+
};
18+
}
19+
20+
registry.category("website-plugins").add(SlidesForumOptionPlugin.id, SlidesForumOptionPlugin);

0 commit comments

Comments
 (0)