Hi Couch community,
after days of searching and reading the documentation and this forum, trying and failing, I am unable to make the multi-language addon work together with the extended-folders addon...
Basically what I am trying to create is a menu from dynamic folders, in 2 or more languages, with extended-folders. The problem I am having is that <cms:show k_folder_title /> in the menu is showing the static name, but <cms:get "title_<cms:show k_lang />" /> is only getting the current folder name, not the extended field "title_nl" or "title_en" of each individual folder. What is the right tag to use here?
The template: machines.php
Extended folders addon: machines-folders.php
The main menu on all pages:
Thanks a million in advance.
after days of searching and reading the documentation and this forum, trying and failing, I am unable to make the multi-language addon work together with the extended-folders addon...
Basically what I am trying to create is a menu from dynamic folders, in 2 or more languages, with extended-folders. The problem I am having is that <cms:show k_folder_title /> in the menu is showing the static name, but <cms:get "title_<cms:show k_lang />" /> is only getting the current folder name, not the extended field "title_nl" or "title_en" of each individual folder. What is the right tag to use here?
The template: machines.php
- Code: Select all
<cms:template title='Verpakkingsmachines' clonable='1' dynamic_folders='1' folder_masterpage='machines-folders.php'>
<cms:each k_supported_langs as='lang' key='lc'>
<cms:editable type='group' name="group_<cms:show lc />" label=lang order=k_count order='1'>
<cms:editable type='text' name="title_<cms:show lc />" label='Title' required='1'/>
<cms:editable type='richtext' name="shorttext_<cms:show lc />" label='Short text' toolbar='custom' custom_toolbar="bold, italic | format | undo, redo | cut, copy, pastetext, pastefromword | link, unlink | justifyleft, justifycenter, justifyright, justifyblock | numberedlist, bulletedlist | source" />
<cms:editable type='richtext' name="longtext_<cms:show lc />" label='Long text' toolbar='custom' custom_toolbar="bold, italic | format | undo, redo | cut, copy, pastetext, pastefromword | link, unlink | justifyleft, justifycenter, justifyright, justifyblock | numberedlist, bulletedlist | source" />
<cms:editable type='richtext' name="brochure_<cms:show lc />" label='Brochure text' toolbar='custom' custom_toolbar="bold, italic | format | undo, redo | cut, copy, pastetext, pastefromword | link, unlink | justifyleft, justifycenter, justifyright, justifyblock | numberedlist, bulletedlist | source" />
</cms:editable>
</cms:each>
<cms:repeatable name='my_gallery' label='Gallery' order='2'>
<cms:editable name='my_image' type='image' show_preview='1' preview_width='150' />
</cms:repeatable>
<cms:editable name='brochure' label='Brochure bestand' desc='Upload the file here' type='file' order='3' />
</cms:template>
Extended folders addon: machines-folders.php
- Code: Select all
<cms:template title='Machine Folders' clonable='1' hidden='1'>
<cms:each k_supported_langs as='lang' key='lc'>
<cms:editable type='group' name="group_<cms:show lc />" label=lang order=k_count order='1'>
<cms:editable type='text' name="title_<cms:show lc />" label='Title' required='1'/>
<cms:editable type='richtext' name="description_<cms:show lc />" label='Description' toolbar='custom' custom_toolbar="bold, italic | format | undo, redo | cut, copy, pastetext, pastefromword | link, unlink | justifyleft, justifycenter, justifyright, justifyblock | numberedlist, bulletedlist | source" />
</cms:editable>
</cms:each>
<cms:repeatable name='my_gallery' label='Gallery' order='2'>
<cms:editable name='my_image' type='image' show_preview='1' preview_width='150' />
</cms:repeatable>
<cms:editable name='my_css' type='message'>
<style type="text/css">
#k_element_k_k_desc, #k_element_k_image {
display: none !important;
}
</style>
</cms:editable>
</cms:template>
The main menu on all pages:
- Code: Select all
<div id="machinesubmenu">
<cms:folders masterpage="machines.php" orderby="weight" depth="1"><ul>
<li><label for="dropmachine" class="machinelabel"><cms:show k_folder_title /></label></li>
<cms:folders masterpage="machines.php" orderby="weight" childof=k_folder_name >
<li><a href="<cms:show_with_lc k_folder_link />"><cms:show k_folder_title /></a></li>
</cms:folders>
</ul></cms:folders>
</div>
Thanks a million in advance.