Skip to content

Commit 7f9e39e

Browse files
committed
add give menu option to landing pages
1 parent 8963590 commit 7f9e39e

File tree

2 files changed

+76
-0
lines changed

2 files changed

+76
-0
lines changed
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# Generated by Django 5.0.12 on 2025-04-24 13:39
2+
3+
import wagtail.fields
4+
from django.db import migrations
5+
6+
7+
class Migration(migrations.Migration):
8+
9+
dependencies = [
10+
("pages", "0154_alter_impact_improving_access"),
11+
]
12+
13+
operations = [
14+
migrations.AlterField(
15+
model_name="rootpage",
16+
name="layout",
17+
field=wagtail.fields.StreamField(
18+
[("default", 0), ("landing", 11)],
19+
blank=True,
20+
block_lookup={
21+
0: ("wagtail.blocks.StructBlock", [[]], {}),
22+
1: (
23+
"wagtail.blocks.CharBlock",
24+
(),
25+
{"help_text": "Visible text of the link or button.", "required": True},
26+
),
27+
2: (
28+
"wagtail.blocks.CharBlock",
29+
(),
30+
{
31+
"help_text": "Accessible label for the link or button. if provided, must begin with the visible text.",
32+
"required": False,
33+
},
34+
),
35+
3: (
36+
"wagtail.blocks.URLBlock",
37+
(),
38+
{"help_text": "External links are full urls that can go anywhere", "required": False},
39+
),
40+
4: ("wagtail.blocks.PageChooserBlock", (), {"required": False}),
41+
5: ("wagtail.documents.blocks.DocumentChooserBlock", (), {"required": False}),
42+
6: (
43+
"wagtail.blocks.CharBlock",
44+
(),
45+
{
46+
"help_text": "Anchor links reference the ID of an element on the page, and scroll the page there.",
47+
"required": False,
48+
},
49+
),
50+
7: (
51+
"wagtail.blocks.StreamBlock",
52+
[[("external", 3), ("internal", 4), ("document", 5), ("anchor", 6)]],
53+
{"required": True},
54+
),
55+
8: (
56+
"wagtail.blocks.StructBlock",
57+
[[("text", 1), ("aria_label", 2), ("target", 7)]],
58+
{"label": "Link", "required": False},
59+
),
60+
9: ("wagtail.blocks.ListBlock", (8,), {"default": [], "label": "Nav Links"}),
61+
10: (
62+
"wagtail.blocks.BooleanBlock",
63+
(),
64+
{"default": True, "label": "Show Give Button in Header", "required": False},
65+
),
66+
11: (
67+
"wagtail.blocks.StructBlock",
68+
[[("nav_links", 9), ("show_give_now_button", 10)]],
69+
{"label": "Landing Page"},
70+
),
71+
},
72+
default=[],
73+
),
74+
),
75+
]

pages/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ class RootPage(Page):
9999
default=[],
100100
label='Nav Links'
101101
)),
102+
('show_give_now_button', blocks.BooleanBlock(required=False, label="Show Give Button in Header", default=True)),
102103
], label='Landing Page')),
103104
], max_num=1, blank=True, collapsed=True, use_json_field=True, default=[])
104105

0 commit comments

Comments
 (0)