[DOCU-2696] Old mtk:components in Magnolia CLI walkthrough example Created: 06/Apr/23  Updated: 13/Apr/23  Resolved: 13/Apr/23

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Martin Haderka Assignee: Martin DrĂ¡pela
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2023-04-06-12-30-46-872.png     PNG File image-2023-04-06-12-51-55-618.png    
Documentation page URL: https://docs.magnolia-cms.com/magnolia-cli/4.x/Magnolia-CLI-walkthrough/index.html

 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


Generated at Mon Feb 12 01:29:26 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.