Skip to content

Commit 2e3d3e3

Browse files
add preview-widget
1 parent 183eafb commit 2e3d3e3

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

  • src/kitconcept/seo/behaviors

src/kitconcept/seo/behaviors/seo.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class ISeo(model.Schema):
1818
fields=[
1919
"seo_title",
2020
"seo_description",
21+
"google_preview",
2122
"seo_noindex",
2223
"seo_canonical_url",
2324
"opengraph_title",
@@ -26,6 +27,19 @@ class ISeo(model.Schema):
2627
],
2728
)
2829

30+
directives.widget(
31+
"google_preview",
32+
frontendOptions={
33+
"widget": "googleSearchPreviewWidget",
34+
},
35+
)
36+
37+
google_preview = schema.Text(
38+
title=_("Search Result Preview"),
39+
required=False,
40+
missing_value=None,
41+
)
42+
2943
directives.widget(
3044
"seo_title",
3145
frontendOptions={
@@ -59,7 +73,6 @@ class ISeo(model.Schema):
5973
),
6074
required=False,
6175
)
62-
6376
# https://support.google.com/webmasters/answer/93710?hl=en
6477
seo_noindex = schema.Bool(
6578
title=_("No Index"),

0 commit comments

Comments
 (0)