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
3737 homepage :
3838 path : ' /'
3939 content :
40- blog_article :
40+ blog-articles :
4141 path : ' /blog/{id}'
42- content_service : ' blog-articles'
43- scholarly_article :
42+ scholarly-articles :
4443 path : ' /articles/{id}'
45- content_service : ' scholarly-articles'
4644 ` ` `
4745
4846Getting help
Original file line number Diff line number Diff line change @@ -3,9 +3,7 @@ libero_page:
33 homepage :
44 path : ' /'
55 content :
6- blog_article :
6+ blog-articles :
77 path : ' /blog/{id}'
8- content_service : ' blog-articles'
9- scholarly_article :
8+ scholarly-articles :
109 path : ' /articles/{id}'
11- content_service : ' scholarly-articles'
Original file line number Diff line number Diff line change @@ -3,9 +3,7 @@ libero_page:
33 homepage :
44 path : ' /'
55 content :
6- blog_article :
6+ blog-articles :
77 path : ' /blog/{id}'
8- content_service : ' blog-articles'
9- scholarly_article :
8+ scholarly-articles :
109 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
7272 /** @var ArrayNodeDefinition $pagesNode */
7373 $ pagesNode = $ builder ->root ('content ' );
7474 $ pagesNode
75+ ->normalizeKeys (false )
7576 ->arrayPrototype ()
7677 ->children ()
7778 ->scalarNode ('path ' )
7879 ->isRequired ()
7980 ->end ()
80- ->scalarNode ('content_service ' )
81- ->isRequired ()
82- ->end ()
8381 ->end ()
8482 ->end ()
8583 ;
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ public function onLoadPageData(LoadPageDataEvent $event) : void
3131 'content_item ' ,
3232 $ this ->client ->requestAsync (
3333 'GET ' ,
34- "{$ page ['content_service ' ]}/items/ {$ page ['content_id ' ]}/versions/latest " ,
34+ "{$ page ['name ' ]}/items/ {$ page ['content_id ' ]}/versions/latest " ,
3535 [
3636 'headers ' => ['Accept ' => 'application/xml ' ],
3737 'http_errors ' => true ,
You can’t perform that action at this time.
0 commit comments