Skip to content
This repository was archived by the owner on Nov 21, 2023. It is now read-only.

Commit 61df49f

Browse files
committed
Add latest realestates
1 parent bed3507 commit 61df49f

File tree

4 files changed

+27
-2
lines changed

4 files changed

+27
-2
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { heading } from '../fields/heading.js'
2+
import { sold } from '../fields/sold.js'
3+
import { count } from '../fields/count.js'
4+
import { show_more } from '../fields/show-more.js'
5+
import { background } from '../fields/background.js'
6+
import {t} from "../i18n/translater.js";
7+
8+
export const block_latestrealestates = {
9+
name: 'latest-realestates',
10+
label: t.blocks.latest,
11+
widget: 'object',
12+
required: false,
13+
i18n: true,
14+
collapsed: false,
15+
summary: '{{title}}',
16+
fields: [
17+
heading,
18+
count,
19+
sold,
20+
show_more,
21+
background
22+
]
23+
}

admin/app/content/pages.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ const pages = {
3333
description,
3434
featured_image,
3535
hero,
36-
body,
37-
blocks
36+
blocks,
37+
body
3838
],
3939
meta: { path: { label: t.content.pages.meta.parent, widget: 'parent', index_file: '_index' } }
4040
}

admin/app/i18n/en/blocks.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ export const blocks = {
9797
}
9898
},
9999
latest: "Latest items (news, projects…)",
100+
latestrealestates: "Latest adds",
100101
map: "Map",
101102
newsletter: {
102103
label: "Newsletter",

admin/app/i18n/fr/blocks.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ export const blocks = {
9797
}
9898
},
9999
latest: "Derniers items (news, projets…)",
100+
latestrealestates: "Dernières annonces",
100101
map: "Carte",
101102
newsletter: {
102103
label: "Newsletter",

0 commit comments

Comments
 (0)