enonic / cms2xp

Enonic CMS to XP migration tool
0 stars 0 forks source link

Update mixin for lib-menu, and use it for migration #25

Closed Bellfalasch closed 6 years ago

Bellfalasch commented 6 years ago

A lot have happened in lib-menu over the years that we could use in the migration.

New mixin code:

<mixin>
    <display-name>Menu settings</display-name>
    <items>
        <input type="Checkbox" name="menuItem">
            <label>Show in menu?</label>
            <help-text>Check this to include this content in the menu.</help-text>
            <occurrences minimum="0" maximum="1"/>
        </input>
        <input type="TextLine" name="menuName">
            <label>Override menu name</label>
            <help-text>Name to be used in menu, default is to use the content's DisplayName.</help-text>
            <occurrences minimum="0" maximum="1"/>
        </input>
        <input type="Checkbox" name="newWindow">
            <label>Open in new window?</label>
            <occurrences minimum="0" maximum="1"/>
        </input>
    </items>
</mixin>