This repository was archived by the owner on Nov 21, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +8
-16
lines changed Expand file tree Collapse file tree 5 files changed +8
-16
lines changed Original file line number Diff line number Diff line change @@ -37,12 +37,10 @@ To run an image reading from two content services (`blog-articles` and `scholarl
37
37
homepage :
38
38
path : ' /'
39
39
content :
40
- blog_article :
40
+ blog-articles :
41
41
path : ' /blog/{id}'
42
- content_service : ' blog-articles'
43
- scholarly_article :
42
+ scholarly-articles :
44
43
path : ' /articles/{id}'
45
- content_service : ' scholarly-articles'
46
44
` ` `
47
45
48
46
Getting help
Original file line number Diff line number Diff line change @@ -3,9 +3,7 @@ libero_page:
3
3
homepage :
4
4
path : ' /'
5
5
content :
6
- blog_article :
6
+ blog-articles :
7
7
path : ' /blog/{id}'
8
- content_service : ' blog-articles'
9
- scholarly_article :
8
+ scholarly-articles :
10
9
path : ' /articles/{id}'
11
- content_service : ' scholarly-articles'
Original file line number Diff line number Diff line change @@ -3,9 +3,7 @@ libero_page:
3
3
homepage :
4
4
path : ' /'
5
5
content :
6
- blog_article :
6
+ blog-articles :
7
7
path : ' /blog/{id}'
8
- content_service : ' blog-articles'
9
- scholarly_article :
8
+ scholarly-articles :
10
9
path : ' /articles/{id}'
11
- content_service : ' scholarly-articles'
Original file line number Diff line number Diff line change @@ -72,14 +72,12 @@ private function getContentPagesDefinition() : ArrayNodeDefinition
72
72
/** @var ArrayNodeDefinition $pagesNode */
73
73
$ pagesNode = $ builder ->root ('content ' );
74
74
$ pagesNode
75
+ ->normalizeKeys (false )
75
76
->arrayPrototype ()
76
77
->children ()
77
78
->scalarNode ('path ' )
78
79
->isRequired ()
79
80
->end ()
80
- ->scalarNode ('content_service ' )
81
- ->isRequired ()
82
- ->end ()
83
81
->end ()
84
82
->end ()
85
83
;
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ public function onLoadPageData(LoadPageDataEvent $event) : void
31
31
'content_item ' ,
32
32
$ this ->client ->requestAsync (
33
33
'GET ' ,
34
- "{$ page ['content_service ' ]}/items/ {$ page ['content_id ' ]}/versions/latest " ,
34
+ "{$ page ['name ' ]}/items/ {$ page ['content_id ' ]}/versions/latest " ,
35
35
[
36
36
'headers ' => ['Accept ' => 'application/xml ' ],
37
37
'http_errors ' => true ,
You can’t perform that action at this time.
0 commit comments