Details
-
Improvement
-
Resolution: Done
-
Neutral
-
None
-
None
-
None
-
None
Description
Description
In Magnolia CLI / Magnolia CLI walkthrough there is an example which uses old mtk :components which isn't available in the current version of MGNL.
The mtk:components/image and mtk:components/linkList occurs in Magnolia CLI walkthrough in
Part II - Creating a light module/Add availability for some pre-existing components section.
And in Part III - Reusing a light module from npm/Get a Google Maps API Key where a yaml example with mtk:components is shown.
The commands and yaml example should be rewritten to use mtk2 as shown in Templates in MTK docu page.
Actual
In Part II - Creating a light module/Add availability for some pre-existing components section:
mgnl add-availability mtk:components/image pages/bucket-list@main
and
mgnl add-availability mtk:components/linkList pages/bucket-list@main
Screenshot:

In Part III - Reusing a light module from npm/Get a Google Maps API Key section:
title: bucket-list templateScript: /bucket-list-module/templates/pages/bucket-list.ftl renderType: freemarker dialog: bucket-list-module:pages/bucket-list visible: true areas: main: availableComponents: activity: id: bucket-list-module:components/activity image:walkthrough/ id: mtk:components/image linkList: id: mtk:components/linkList google-maps: id: google-maps-magnolia:components/google-maps
Screenshot:

Excepted
mgnl add-availability mtk2:components/image pages/bucket-list@main
and
mgnl add-availability mtk2:components/linkList pages/bucket-list@main
In Part III - Reusing a light module from npm/Get a Google Maps API Key section:
title: bucket-list templateScript: /bucket-list-module/templates/pages/bucket-list.ftl renderType: freemarker dialog: bucket-list-module:pages/bucket-list visible: true areas: main: availableComponents: activity: id: bucket-list-module:components/activity image:walkthrough/ id: mtk2:components/image linkList: id: mtk2:components/linkList google-maps: id: google-maps-magnolia:components/google-maps
Note
The MTK2 was introduced with 6.2.10 version, and demo-webapp comes with MTK2 only. See Release Notes