<#-- # The insert services offered to the user, opened by the Lutece button of the rich text editors. Two views, chosen with a toggle and remembered in the # browser: tiles (one per service, illustrated with the icon of its plugin) and plugins (the plugins on the left, the services of the chosen one on the right). # Without script, the tiles show and the toggle stays hidden. Styles: insert_service.css, behaviours: lutece-insert.js (InsertServiceHeader.jsp). # # Model: insert_service_groups (plugin_name, plugin_display_name: the .plugin.name key of the plugin or its name, plugin: the Plugin or null, # services: the insert services of the plugin), input, selected_text. --> <#-- The icon of the kind of insertion, by insert service; a link by default --> <#assign insertServiceKindIcons = { 'librarylinkservice': 'photo', 'libraryuploadlinkservice': 'upload', 'INTERNAL_LINK_INSERT_SERVICE': 'file-text', 'PAGE_INSERT_SERVICE': 'file-text', 'DOCUMENT_INSERT_SERVICE': 'file-description' } /> <#macro insertServiceUrl service>jsp/admin/insert/DisplayInsertService.jsp?insert_service_type=${service.id}&plugin_name=${service.pluginName}&input=${.data_model.input!}&selected_text=${selected_text!} <#macro insertServicePluginName group>${group.plugin_display_name!group.plugin_name} <#-- The icon of the plugin, or a generic icon when the plugin has none or its file is missing --> <#macro insertServicePluginIcon group> <#if group.plugin?? && group.plugin.iconUrl?has_content><#else>
<@h level=2 class='visually-hidden'>#i18n{portal.insert.page_insertservice.labelInsert}
<#-- Tiles --> <#-- Plugins: the plugins on the left, the services of the chosen plugin on the right -->
<#list insert_service_groups as group>
<#list insert_service_groups as group>
hidden>
<@insertServicePluginName group=group /> <#if group.plugin?? && group.plugin.description?has_content>#i18n{${group.plugin.description}}