Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit42c2e75

Browse files
Develop the Products Feature Part 1: Document Type
1 parent0b851b4 commit42c2e75

File tree

33 files changed

+794
-0
lines changed

33 files changed

+794
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
definitions:
2+
config:
3+
/hippo:configuration/hippo:queries/hippo:templates/new-product-document:
4+
jcr:primaryType:hippostd:templatequery
5+
hippostd:modify:[./_name, $name, './hippotranslation:locale', $inherited, './hippotranslation:id',
6+
$uuid, './hippostdpubwf:createdBy', $holder, './hippostdpubwf:creationDate',
7+
$now, './hippostdpubwf:lastModifiedBy', $holder, './hippostdpubwf:lastModificationDate',
8+
$now, './hippostd:holder', $holder]
9+
jcr:language:xpath
10+
jcr:statement://element(*,hipposysedit:namespacefolder)/element(*,mix:referenceable)/element(*,hipposysedit:templatetype)/hipposysedit:prototypes/element(hipposysedit:prototype,gogreen:product)
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
definitions:
2+
config:
3+
/hippo:configuration/hippo:queries/hippo:templates/new-product-folder:
4+
jcr:primaryType:hippostd:templatequery
5+
hippostd:modify:[./_name, $name, './hippotranslation:id', $uuid, './hippotranslation:locale',
6+
$inherited]
7+
jcr:language:xpath
8+
jcr:statement:/jcr:root/hippo:configuration/hippo:queries/hippo:templates/new-product-folder/hippostd:templates/node()
9+
/hippostd:templates:
10+
jcr:primaryType:hippostd:templates
11+
/hippostd:folder:
12+
jcr:primaryType:hippostd:folder
13+
jcr:mixinTypes:['hippotranslation:translated']
14+
hippostd:foldertype:[new-product-document, new-product-folder]
15+
hippotranslation:id:generated id
16+
hippotranslation:locale:inherited locale

‎repository-data/application/src/main/resources/hcm-config/configuration/translations/templates.yaml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ definitions:
2222
new-content-document:new content document
2323
new-gogreen-imageset-image:New Image
2424
new-gogreen-imageset-folder:new folder
25+
new-product-document:new product document
26+
new-product-folder:new product folder
2527
/hippo:configuration/hippo:translations/hippo:templates/fr:
2628
new-resource-bundle:nouveau resource bundle
2729
new-untranslated-folder:nouveau dossier non traduit

‎repository-data/application/src/main/resources/hcm-config/namespaces/gogreen.cnd‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@
1919
[gogreen:newsdocument] > gogreen:basedocument, hippostd:relaxed, hippotranslation:translated
2020
orderable
2121

22+
[gogreen:product] > gogreen:basedocument, hippostd:relaxed, hippotranslation:translated
23+
orderable
24+
Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
definitions:
2+
config:
3+
/hippo:namespaces/gogreen/product:
4+
jcr:primaryType:hipposysedit:templatetype
5+
jcr:mixinTypes:['editor:editable', 'mix:referenceable']
6+
jcr:uuid:1aa2188a-7cfb-45ee-bd87-19d39ef7756f
7+
/hipposysedit:nodetype:
8+
jcr:primaryType:hippo:handle
9+
jcr:mixinTypes:['mix:referenceable']
10+
jcr:uuid:e097fbaa-9b52-412e-88a4-669893dcec02
11+
/hipposysedit:nodetype:
12+
jcr:primaryType:hipposysedit:nodetype
13+
jcr:mixinTypes:['mix:referenceable', 'hipposysedit:remodel']
14+
jcr:uuid:80e1e038-d0d2-4afc-92a5-6584f3267913
15+
hipposysedit:node:true
16+
hipposysedit:supertype:['gogreen:basedocument', 'hippostd:relaxed', 'hippotranslation:translated']
17+
hipposysedit:uri:http://www.gogreen.com/gogreen/nt/1.0
18+
/title:
19+
jcr:primaryType:hipposysedit:field
20+
hipposysedit:mandatory:false
21+
hipposysedit:multiple:false
22+
hipposysedit:ordered:false
23+
hipposysedit:path:gogreen:title
24+
hipposysedit:primary:false
25+
hipposysedit:type:String
26+
hipposysedit:validators:[required]
27+
/price:
28+
jcr:primaryType:hipposysedit:field
29+
hipposysedit:mandatory:false
30+
hipposysedit:multiple:false
31+
hipposysedit:ordered:false
32+
hipposysedit:path:gogreen:price
33+
hipposysedit:primary:false
34+
hipposysedit:type:Double
35+
hipposysedit:validators:[required]
36+
/introduction:
37+
jcr:primaryType:hipposysedit:field
38+
hipposysedit:mandatory:false
39+
hipposysedit:multiple:false
40+
hipposysedit:ordered:false
41+
hipposysedit:path:gogreen:introduction
42+
hipposysedit:primary:false
43+
hipposysedit:type:Text
44+
hipposysedit:validators:[required]
45+
/description:
46+
jcr:primaryType:hipposysedit:field
47+
hipposysedit:mandatory:false
48+
hipposysedit:multiple:false
49+
hipposysedit:ordered:false
50+
hipposysedit:path:gogreen:description
51+
hipposysedit:primary:false
52+
hipposysedit:type:hippostd:html
53+
hipposysedit:validators:[required]
54+
/images:
55+
jcr:primaryType:hipposysedit:field
56+
hipposysedit:mandatory:false
57+
hipposysedit:multiple:true
58+
hipposysedit:ordered:false
59+
hipposysedit:path:gogreen:images
60+
hipposysedit:primary:false
61+
hipposysedit:type:hippogallerypicker:imagelink
62+
hipposysedit:validators:[required]
63+
/hipposysedit:prototypes:
64+
jcr:primaryType:hipposysedit:prototypeset
65+
/hipposysedit:prototype:
66+
jcr:primaryType:gogreen:product
67+
hippostd:holder:holder
68+
hippostd:state:draft
69+
hippostdpubwf:createdBy:''
70+
hippostdpubwf:lastModifiedBy:''
71+
hippotranslation:id:document-type-locale-id
72+
hippotranslation:locale:document-type-locale
73+
jcr:mixinTypes:['mix:referenceable']
74+
gogreen:title:''
75+
gogreen:price:0.0
76+
gogreen:introduction:''
77+
jcr:uuid:a56604be-996b-4816-b93d-1a7237befaa4
78+
hippostdpubwf:lastModificationDate:2022-04-14T10:10:42.812-07:00
79+
hippostdpubwf:creationDate:2022-04-14T10:10:42.812-07:00
80+
/gogreen:description:
81+
jcr:primaryType:hippostd:html
82+
hippostd:content:''
83+
/gogreen:images:
84+
jcr:primaryType:hippogallerypicker:imagelink
85+
hippo:docbase:cafebabe-cafe-babe-cafe-babecafebabe
86+
hippo:facets:[]
87+
hippo:modes:[]
88+
hippo:values:[]
89+
/editor:templates:
90+
jcr:primaryType:editor:templateset
91+
/_default_:
92+
jcr:primaryType:frontend:plugincluster
93+
frontend:properties:[mode]
94+
frontend:references:[wicket.model, model.compareTo, engine, validator.id]
95+
frontend:services:[wicket.id, validator.id]
96+
/root:
97+
jcr:primaryType:frontend:plugin
98+
item:${cluster.id}.field
99+
plugin.class:org.hippoecm.frontend.service.render.ListViewPlugin
100+
/title:
101+
jcr:primaryType:frontend:plugin
102+
caption:Title
103+
field:title
104+
plugin.class:org.hippoecm.frontend.editor.plugins.field.PropertyFieldPlugin
105+
wicket.id:${cluster.id}.field
106+
/cluster.options:
107+
jcr:primaryType:frontend:pluginconfig
108+
/price:
109+
jcr:primaryType:frontend:plugin
110+
caption:Price
111+
field:price
112+
plugin.class:org.hippoecm.frontend.editor.plugins.field.PropertyFieldPlugin
113+
wicket.id:${cluster.id}.field
114+
/cluster.options:
115+
jcr:primaryType:frontend:pluginconfig
116+
/introduction:
117+
jcr:primaryType:frontend:plugin
118+
caption:Introduction
119+
field:introduction
120+
plugin.class:org.hippoecm.frontend.editor.plugins.field.PropertyFieldPlugin
121+
wicket.id:${cluster.id}.field
122+
/cluster.options:
123+
jcr:primaryType:frontend:pluginconfig
124+
/description:
125+
jcr:primaryType:frontend:plugin
126+
caption:Description
127+
field:description
128+
plugin.class:org.hippoecm.frontend.editor.plugins.field.NodeFieldPlugin
129+
wicket.id:${cluster.id}.field
130+
/cluster.options:
131+
jcr:primaryType:frontend:pluginconfig
132+
/images:
133+
jcr:primaryType:frontend:plugin
134+
caption:Images
135+
field:images
136+
hint:''
137+
plugin.class:org.hippoecm.frontend.editor.plugins.field.NodeFieldPlugin
138+
wicket.id:${cluster.id}.field
139+
/cluster.options:
140+
jcr:primaryType:frontend:pluginconfig

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp