Forum Ametys

Forum de la communauté Ametys

You are not logged in.

#1 28/11/2012 14:34:46

Loïc Wyffels
Guest
Registered: 23/11/2012
Posts: 12

Moteur de recherche Ametys & service CMIS

Bonjour,

J'ai connecté mon serveur Alfresco à Ametys avec le bouton "serveur CMIS".
Via le moteur de recherche ametys, Est-il possible d'effectuer des recherches dans les ressources de mon serveur CMIS?

Merci,

Loïc Wyffels

Offline

#2 28/11/2012 16:25:04

Cédric Damioli
Ametys Product Manager
From: Toulouse
Registered: 10/08/2010
Posts: 336

Re: Moteur de recherche Ametys & service CMIS

Bonjour,

En insérant un lien CMIS dans les pièces jointes d'une page (le bouton ne doit pas exister dans la version disponible en téléchargement, mais on peut le rajouter facilement), celles-ci étant indexées automatiquement par Ametys, vous pourriez obtenir le résultat attendu, par exemple en insérant un moteur de recherche sur les documents restreint à la page ou ce genre de choses.

Cédric

Offline

#3 28/11/2012 17:32:26

Loïc Wyffels
Guest
Registered: 23/11/2012
Posts: 12

Re: Moteur de recherche Ametys & service CMIS

D'accord, dans ma version,  menu pièce jointe, j'ai uniquement un bouton "nouveau" pour uploader des fichiers de mon disque.

Je peux ajouter le bouton moi même?

Loïc

Offline

#4 28/11/2012 18:54:37

Raphaël Franchet
Expert Team
From: Toulouse
Registered: 10/08/2010
Posts: 1,117

Re: Moteur de recherche Ametys & service CMIS

Bonjour,

il s'agit de modifier la barre d'outil ou ruban (ribbon en anglais).
Pour cela vous disposez dans votre répertoire WEB-INF/param de fichiers cms-ribbon*.xml.

En effet, il existe plusieurs fichiers selon la typologie de site utilisée. Selon toute vraisemblance, vous utilisez cms-ribbon-default.xml.

Lorsque vous éditez ce fichier vous verrez la description du rubban.
Le problème, c'est que la plupart des barres d'outils sont inclues dans les plugins et ne sont que référencées ici.

Dans votre cas, vous trouverez dans ce fichier la ligne suivante vers la fin du fichier :

<import>plugin:web://ribbon/cms-ribbon.xml</import>

L'idée est donc de supprimer cet import et de le remplacer par son contenu.
Voici le contenu du fichier :

En l'ouvrant, vous verrez que lui-même ne contient que des imports vers une série d'autres fichiers.
Celui qui vous interesse est celui-là :

<!-- Attachments contextual tab -->
<import>plugin:web://ribbon/cms-ribbon-attachments.xml</import>

Il faut donc remplacer cet import par le contenu du fichier que vous trouverez ici :

Enfin dans ce fichier il s'agit d'ajouter la ligne suivante dans le groupe de votre choix :

<control id="org.ametys.plugins.explorer.resources.Folder.cmis"/>

Attention ! Quand un groupe contient une description <large>, <medium> et <small> , il faut ajouter la ligne dans les 3. (sinon une erreur sera affichée)



Pour résumer, dans le fichier WEB-INF/param/cms-ribbon-default.xml, remplacez

<import>plugin:web://ribbon/cms-ribbon.xml</import>

par

        <!-- Page access contextual tab -->
        <import>plugin:web://ribbon/cms-ribbon-pageaccess.xml</import>
        <!-- Comments contextual tab -->
        <import>plugin:web://ribbon/cms-ribbon-comments.xml</import>
        <!-- Attachments contextual tab -->
        <import>plugin:web://ribbon/cms-ribbon-attachments.xml</import>
        <!-- Content attachments contextual tab -->
        <import>plugin:web://ribbon/cms-ribbon-content-attachments.xml</import>
        <!-- Resource explorer contextual tab -->
        <import>plugin:web://ribbon/cms-ribbon-explorer.xml</import>
        <!-- Tags contextual tab -->
        <import>plugin:web://ribbon/cms-ribbon-tags.xml</import>
        <!-- Alias contextual tab -->
        <import>plugin:web://ribbon/cms-ribbon-alias.xml</import>
        <!-- Consistency contextual tab -->
        <import>plugin:web://ribbon/cms-ribbon-consistency.xml</import>

puis dans ce nouveau texte, remplacez

<import>plugin:web://ribbon/cms-ribbon-attachments.xml</import>

par le contenu du fichier . qui commence ainsi

tabs>
        <tab label="plugin.web:RIBBON_TABS_TAB_ATTACHMENTS_LABEL" id="org.ametys.web.AttachmentTab" contextualColor="6" contextualLabel="plugin.web:RIBBON_TABS_TAB_ATTACHMENTS_GROUP_LABEL">
            <groups>
                <group label="plugin.web:RIBBON_TABS_TAB_ATTACHMENTS_GROUP_GROUP_FOLDER_LABEL" icon="">
                    <large>
                        <control id="org.ametys.plugins.attachments.resources.Folder.add"/>
...

et à chacun des 3 occurences de

<control id="org.ametys.plugins.attachments.resources.Folder.add"/>

ajoutez à la suite

<control id="org.ametys.plugins.explorer.resources.Folder.cmis"/>


Pas la peine de redémarrer le serveur normalement, un simple rechargement dans le navigateur suffit.


Raphael Franchet
Expert Ametys

Offline

#5 28/11/2012 18:56:50

Raphaël Franchet
Expert Team
From: Toulouse
Registered: 10/08/2010
Posts: 1,117

Re: Moteur de recherche Ametys & service CMIS

Si le coeur vous en dit, je vous invite à vous inscrire sur l'outil de suivi de tickets  et ouvrir une demande d'amélioration (en anglais) pour que ce bouton soit ajouté dans la configuration par défaut.


Raphael Franchet
Expert Ametys

Offline

#6 29/11/2012 17:50:57

Loïc Wyffels
Guest
Registered: 23/11/2012
Posts: 12

Re: Moteur de recherche Ametys & service CMIS

Bonjour,
Tout d'abord, merci de passer du temps à me répondre.
Alors, j'ai pas l'impression de mettre planté...mais je ne vois pas le bouton "cmis"dans le bandeau PJ d'une page.

Voici le code:

<?xml version="1.0" encoding="UTF-8"?>
<!--
   Copyright 2010 Anyware Services

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
   -->
<ribbon  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:noNamespaceSchemaLocation="http://ametys.org/cms/3.0/ribbon.xsd">

    <tabs>
        <tab label="RIBBON_TABS_TAB_HOME_LABEL">
            <groups>
                <group label="RIBBON_TABS_TAB_HOME_GROUPS_GROUP_TOOL_LABEL" icon="">
                    <large>
                        <control id="org.ametys.web.userinterface.Sitemap"/>
                        <control id="org.ametys.web.Search"/>
                        <control id="org.ametys.dashboard.Tool"/>
                        <control id="org.ametys.web.userinterface.Tags"/>
                        <control id="org.ametys.web.explorer.userinterface.ResourcesExplorerLeft"/>
                        <control id="org.ametys.web.GlobalConsistencyButton"/>
                        <control id="org.ametys.plugins.glossary.Glossary"/>
                    </large>
                    <medium>
                        <control id="org.ametys.web.userinterface.Sitemap"/>
                        <layout size="small" cols="2">
                            <control id="org.ametys.web.Search"/>
                            <control id="org.ametys.dashboard.Tool"/>
                            <control id="org.ametys.web.userinterface.Tags"/>
                            <control id="org.ametys.web.explorer.userinterface.ResourcesExplorerLeft"/>
                            <control id="org.ametys.web.GlobalConsistencyButton"/>
                            <control id="org.ametys.plugins.glossary.Glossary"/>
                        </layout>
                    </medium>
                    <small>
                        <control id="org.ametys.web.userinterface.Sitemap"/>
                        <layout size="very-small" cols="2">
                            <control id="org.ametys.web.Search"/>
                            <control id="org.ametys.dashboard.Tool"/>
                            <control id="org.ametys.web.userinterface.Tags"/>
                            <control id="org.ametys.web.explorer.userinterface.ResourcesExplorerLeft"/>
                            <control id="org.ametys.web.GlobalConsistencyButton"/>
                            <control id="org.ametys.plugins.glossary.Glossary"/>
                        </layout>
                    </small>
                </group>
                <group label="RIBBON_TABS_TAB_HOME_GROUPS_GROUP_ADVANCED_TOOL_LABEL" icon="">
                    <large>
                        <control id="org.ametys.newsletter.userinterface.Newsletters"/>
                        <control id="org.ametys.plugins.ugc.Search"/>
                           <control id="org.ametys.datainclusion.tool.DataSources"/>
                              <control id="org.ametys.web.userinterface.Alias"/>
                              <control id="org.ametys.survey.SurveyTool"/>
                    </large>
                    <medium>
                        <control id="org.ametys.newsletter.userinterface.Newsletters"/>
                        <control id="org.ametys.plugins.ugc.Search"/>
                        <layout size="small">
                            <control id="org.ametys.datainclusion.tool.DataSources"/>
                            <control id="org.ametys.web.userinterface.Alias"/>
                            <control id="org.ametys.survey.SurveyTool"/>
                        </layout>
                    </medium> 
                    <small/>
                </group>
                <group label="RIBBON_TABS_TAB_HOME_GROUPS_GROUP_ADMIN_TOOL_LABEL" icon="">
                    <large/>
                    <medium>
                        <control id="org.ametys.web.userinterface.Unlock"/>
                        <control id="org.ametys.cms.rights.RightsAssignmentMenu"/>
                    </medium>
                    <small/>
                </group>
                <group label="RIBBON_TABS_TAB_HOME_GROUPS_GROUP_HELP_LABEL" icon="">
                    <large></large>
                    <medium>
                        <control id="org.ametys.cms.help.HelpButton"/>
                    </medium>
                    <small></small>
                </group>
            </groups>
        </tab>
        
        <tab label="RIBBON_TABS_TAB_RIGHTS_HANDLE_LABEL">
            <groups>
                <group label="RIBBON_TABS_TAB_RIGHTS_HANDLE_USERS_GROUPS_LABEL" icon="">
                    <large></large>
                    <medium>
                        <control id="org.ametys.cms.tool.user.User"/>
                        <control id="org.ametys.web.tool.user.FOUsers"/>
                        <control id="org.ametys.cms.rights.group.Group"/>
                        <control id="org.ametys.web.rights.profiles.Profiles"/>
                    </medium>
                    <small/>
                </group>
                <group label="RIBBON_TABS_TAB_RIGHTS_HANDLE_RIGHTS_ASSIGNMENT_CONTEXT_LABEL" icon="">
                    <large>
                        <control id="org.ametys.cms.rights.assignment.tool.Application"/>
                        <control id="org.ametys.cms.rights.assignment.tool.Contents"/>
                        <control id="org.ametys.web.rights.assignment.tool.Sitemap"/>
                        <control id="org.ametys.web.rights.assignment.tool.Resources"/>
                    </large>
                    <medium>
                        <control id="org.ametys.cms.rights.assignment.tool.Application"/>
                        <layout size="small">
                            <control id="org.ametys.cms.rights.assignment.tool.Contents"/>
                            <control id="org.ametys.web.rights.assignment.tool.Sitemap"/>
                            <control id="org.ametys.web.rights.assignment.tool.Resources"/>
                        </layout>
                    </medium>
                    <small>
                        <control id="org.ametys.cms.rights.assignment.tool.Application"/>
                        <layout size="very-small">
                            <control id="org.ametys.cms.rights.assignment.tool.Contents"/>
                            <control id="org.ametys.web.rights.assignment.tool.Sitemap"/>
                            <control id="org.ametys.web.rights.assignment.tool.Resources"/>
                        </layout>
                    </small>
                </group>
            </groups>
        </tab>

        <tab label="RIBBON_TABS_TAB_DEVELOPPER_LABEL">
            <groups>
                <group label="RIBBON_TABS_TAB_DEVELOPPER_GROUPS_GROUP_MESSAGES_LABEL" icon="">
                    <large>
                        <control id="org.ametys.cms.userinterface.MessageTrackerControl"/>
                        <layout size="small">
                            <control id="org.ametys.cms.userinterface.MessageTrackerControl.clear"/>
                        </layout>
                    </large>
                    <medium>
                        <control id="org.ametys.cms.userinterface.MessageTrackerControl"/>
                        <layout size="very-small">
                            <control id="org.ametys.cms.userinterface.MessageTrackerControl.clear"/>
                        </layout>
                    </medium>
                    <small/>
                </group>
                <group label="RIBBON_TABS_TAB_DEVELOPPER_GROUPS_GROUP_REQUESTS_LABEL" icon="">
                    <large>
                        <control id="org.ametys.cms.userinterface.RequestTrackerControl"/>
                        <layout size="small">
                            <control id="org.ametys.cms.userinterface.RequestTrackerControl.clear"/>
                        </layout>
                    </large>
                    <medium>
                        <control id="org.ametys.cms.userinterface.RequestTrackerControl"/>
                        <layout size="very-small">
                            <control id="org.ametys.cms.userinterface.RequestTrackerControl.clear"/>
                        </layout>
                    </medium>
                    <small></small>
                </group>
                <group label="RIBBON_TABS_TAB_DEVELOPPER_GROUPS_GROUP_EDITOR_LABEL" icon="">
                    <large/>
                    <medium>
                        <control id="org.ametys.cms.editor.SourceEdit"/>
                    </medium>
                    <small/>
                </group>
                <group label="RIBBON_TABS_TAB_DEVELOPPER_GROUPS_GROUP_INTEGRATOR_LABEL" icon="">
                    <large/>
                    <medium>
                        <control id="org.ametys.skineditor.tool.SkinEditorTool"/>
                        <!-- control id="org.ametys.skinfactory.SkinFactoryButton"/-->
                    </medium>
                    <small/>
                </group>
                <group label="RIBBON_TABS_TAB_DEVELOPPER_GROUPS_GROUP_DEVELOPER_LABEL" icon="">
                    <large/>
                    <medium>
                        <control id="org.ametys.cms.userinterface.debug.UI"/>
                    </medium>
                    <small/>
                </group>
            </groups>
        </tab>
        
        <!-- Rights -->
        <import>plugin:cms://ribbon/cms-ribbon-rights.xml</import>
        <import>plugin:web://ribbon/cms-ribbon-rights.xml</import>
        
        <tab label="plugin.web:RIBBON_TABS_TAB_PAGE_LABEL" id="org.ametys.cms.page.Tab" contextualColor="2" contextualGroup="A" contextualLabel="plugin.web:RIBBON_TABS_TAB_PAGE_LABEL">
            <groups>
                <group label="plugin.web:RIBBON_TABS_TAB_PAGE_GROUPS_GROUP_SITEMAP_LABEL" icon="">
                    <large>
                        <control id="org.ametys.web.userinterface.AddPage"/>
                        <control id="org.ametys.web.userinterface.OpenPage"/>
                        <control id="org.ametys.web.userinterface.RenamePage"/>
                        <control id="org.ametys.web.userinterface.DeletePage"/>
                        <control id="org.ametys.web.userinterface.CopyPage"/>
                        <control id="org.ametys.web.userinterface.PastePage"/>
                    </large>
                    <medium>
                        <control id="org.ametys.web.userinterface.AddPage"/>
                        <layout size="small">
                            <control id="org.ametys.web.userinterface.OpenPage"/>
                            <control id="org.ametys.web.userinterface.RenamePage"/>
                            <control id="org.ametys.web.userinterface.DeletePage"/>
                        </layout>
                        <layout size="small">
                            <control id="org.ametys.web.userinterface.CopyPage"/>
                            <control id="org.ametys.web.userinterface.PastePage"/>
                        </layout>
                    </medium>
                    <small>
                        <control id="org.ametys.web.userinterface.AddPage"/>
                        <layout size="small">
                            <control id="org.ametys.web.userinterface.OpenPage"/>
                            <control id="org.ametys.web.userinterface.RenamePage"/>
                            <control id="org.ametys.web.userinterface.DeletePage"/>
                        </layout>
                        <layout size="very-small">
                            <control id="org.ametys.web.userinterface.CopyPage"/>
                            <control id="org.ametys.web.userinterface.PastePage"/>
                        </layout>
                    </small>
                </group>
                <group label="plugin.web:RIBBON_TABS_TAB_PAGE_GROUPS_GROUP_PAGETYPE_LABEL" icon="">
                    <large>
                    </large>
                    <medium>
                        <control id="org.ametys.web.blankpage"/>
                        <control id="org.ametys.web.linkpage"/>
                        <control id="org.ametys.web.templatesmenu"/>
                    </medium>
                    <small>
                        <layout size="small">
                            <control id="org.ametys.web.blankpage"/>
                            <control id="org.ametys.web.linkpage"/>
                            <control id="org.ametys.web.templatesmenu"/>
                        </layout>
                    </small>
                </group>
                <group label="plugin.web:RIBBON_TABS_TAB_PAGE_GROUPS_GROUP_PAGE_LABEL" icon="">
                    <large>
                        <control id="org.ametys.web.userinterface.Tag"/>
                        <control id="org.ametys.web.pageaccess.SetAccess"/>
                        <control id="org.ametys.web.userinterface.Attachments"/>
                        <control id="org.ametys.web.userinterface.Robots"/> 
                        <control id="org.ametys.translationflagging.SetTranslation"/>
                        <control id="org.ametys.web.page.Properties"/>
                    </large>
                    <medium>
                        <layout align="top" size="small" cols="2">
                            <control id="org.ametys.web.userinterface.Tag"/>
                            <control id="org.ametys.web.pageaccess.SetAccess"/>
                            <control id="org.ametys.web.userinterface.Attachments"/>
                            <control id="org.ametys.web.userinterface.Robots"/> 
                            <control id="org.ametys.translationflagging.SetTranslation"/>
                            <control id="org.ametys.web.page.Properties"/>
                        </layout>
                    </medium>
                    <small>
                        <control id="org.ametys.web.userinterface.Tag"/>
                        <layout align="top" size="very-small" cols="2">
                            <control id="org.ametys.web.pageaccess.SetAccess"/>
                            <control id="org.ametys.web.userinterface.Attachments"/>
                            <control id="org.ametys.web.userinterface.Robots"/> 
                            <control id="org.ametys.translationflagging.SetTranslation"/>
                            <control id="org.ametys.web.page.Properties"/>
                        </layout>
                    </small>
                </group>
                <group label="plugin.web:RIBBON_TABS_TAB_PAGE_GROUPS_GROUP_ZONE_LABEL" icon="" priority="10">
                    <large>
                        <control id="org.ametys.web.addcontent"/>
                        <control id="org.ametys.web.addservice"/>
                        <layout align="top" size="small">
                            <control id="org.ametys.web.configureservice"/>
                            <control id="org.ametys.web.removezoneitem"/>
                        </layout>
                    </large>
                    <medium>
                        <control id="org.ametys.web.addcontent"/>
                        <layout align="top" size="small">
                            <control id="org.ametys.web.addservice"/>
                            <control id="org.ametys.web.configureservice"/>
                            <control id="org.ametys.web.removezoneitem"/>
                        </layout>
                    </medium>
                    <small>
                        <control id="org.ametys.web.addcontent"/>
                        <layout align ="top" size="very-small">
                            <control id="org.ametys.web.addservice"/>
                            <control id="org.ametys.web.configureservice"/>
                            <control id="org.ametys.web.removezoneitem"/>
                        </layout>
                    </small>
                </group>
                <group label="plugin.web:RIBBON_TABS_TAB_PAGE_GROUPS_GROUP_PUBLICATION_LABEL" icon="">
                    <large>
                        <control id="org.ametys.web.publication.schedule"/>
                        <control id="org.ametys.web.preview"/>
                        <control id="org.ametys.web.livepreview"/>
                    </large>
                    <medium>
                        <layout align ="top" size="small">
                            <control id="org.ametys.web.publication.schedule"/>
                            <control id="org.ametys.web.preview"/>
                            <control id="org.ametys.web.livepreview"/>
                        </layout>
                    </medium>
                    <small/>
                </group>
                <group label="plugin.web:RIBBON_TABS_TAB_PAGE_GROUPS_GROUP_TOOL_LABEL" icon="">
                    <large></large>
                    <medium>
                        <control id="org.ametys.web.userinterface.ReloadPage"/>
                        <control id="org.ametys.web.rights.assignment.tool.Sitemap"/>
                    </medium>
                    <small/>
                </group>
            </groups>
        </tab>

        <tab label="plugin.cms:RIBBON_TABS_TAB_CONTENT_LABEL" id="org.ametys.cms.content.Tab" contextualColor="1" contextualGroup="A" contextualLabel="plugin.web:RIBBON_TABS_TAB_PAGE_LABEL">
            <groups>
                <group label="plugin.cms:RIBBON_TABS_TAB_CONTENT_GROUPS_GROUP_TOOL_LABEL" icon="" priority="-10">
                    <large>
                        <control id="org.ametys.cms.ContentConsistencyTest"/>
                        <control id="org.ametys.cms.userinterface.History"/>
                        <control id="org.ametys.cms.repository.comments.view"/>
                        <control id="org.ametys.web.Details"/>
                        <control id="org.ametys.forms.ExportForm"/>
                        <control id="org.ametys.cms.ContentAlerts"/>
                        <control id="org.ametys.cms.userinterface.Attachments"/>
                    </large>
                    <medium>
                        <!--<control id="org.ametys.plugins.attachment.Button"/>-->
                        <control id="org.ametys.cms.ContentConsistencyTest"/>
                        <layout size="small" align="top">
                            <control id="org.ametys.cms.userinterface.History"/>
                            <control id="org.ametys.cms.repository.comments.view"/>
                            <control id="org.ametys.web.Details"/>
                        </layout>
                        <layout size="small" align="top">
                            <control id="org.ametys.forms.ExportForm"/>
                            <control id="org.ametys.cms.ContentAlerts"/>
                            <control id="org.ametys.cms.userinterface.Attachments"/>
                        </layout>
                    </medium>
                    <small>
                        <control id="org.ametys.cms.ContentConsistencyTest"/>
                        <layout size="very-small" align="top">
                            <control id="org.ametys.cms.userinterface.History"/>
                            <control id="org.ametys.cms.repository.comments.view"/>
                            <control id="org.ametys.web.Details"/>
                        </layout>
                        <layout size="very-small" align="top">
                            <control id="org.ametys.forms.ExportForm"/>
                            <control id="org.ametys.cms.ContentAlerts"/>
                            <control id="org.ametys.cms.userinterface.Attachments"/>
                        </layout>
                    </small>
                </group>
                <group label="plugin.cms:RIBBON_TABS_TAB_CONTENT_GROUPS_GROUP_ACTION_LABEL" icon="">
                    <large/>
                    <medium>
                        <control id="org.ametys.web.workflow.Edit"/>
                        <control id="org.ametys.web.userinterface.Tag"/>
                        <control id="org.ametys.web.Unlock"/>
                    </medium>
                    <small>
                        <control id="org.ametys.web.workflow.Edit"/>
                        <layout size="very-small" align="top">
                            <control id="org.ametys.web.userinterface.Tag"/>
                            <control id="org.ametys.web.Unlock"/>
                        </layout>
                    </small>
                </group>
                <group label="plugin.cms:RIBBON_TABS_TAB_CONTENT_GROUPS_GROUP_WORKFLOW_LABEL" icon="">
                    <large>
                        <control id="org.ametys.web.workflow.Draft"/>
                        <control id="org.ametys.web.workflow.Proposed"/>
                        <control id="org.ametys.web.workflow.Validated"/>
                        <layout size="small" align="top">
                            <control id="org.ametys.web.workflow.Unpublish"/>
                            <control id="org.ametys.web.content.Delete"/>
                        </layout>
                    </large>
                    <medium>
                        <control id="org.ametys.web.workflow.Draft"/>
                        <layout size="small" align="top">
                            <control id="org.ametys.web.workflow.Proposed"/>
                            <control id="org.ametys.web.workflow.Validated"/>
                        </layout>
                        <layout size="small" align="top">
                            <control id="org.ametys.web.workflow.Unpublish"/>
                            <control id="org.ametys.web.content.Delete"/>
                        </layout>
                    </medium>
                    <small>
                        <control id="org.ametys.web.workflow.Draft"/>
                        <layout size="very-small" align="top">
                            <control id="org.ametys.web.workflow.Proposed"/>
                            <control id="org.ametys.web.workflow.Validated"/>
                        </layout>
                        <layout size="very-small" align="top">
                            <control id="org.ametys.web.workflow.Unpublish"/>
                            <control id="org.ametys.web.content.Delete"/>
                        </layout>
                    </small>
                </group>
                <group label="plugin.web:RIBBON_TABS_TAB_CONTENT_GROUPS_GROUP_PRIVACY_LABEL" icon="">
                    <large/>
                    <medium>
                        <control id="org.ametys.web.contentprivacy"/>
                    </medium>
                    <small/>
                </group>
            </groups>
        </tab>
        <tab label="plugin.cms:RIBBON_TABS_TAB_OLD_CONTENT_LABEL" id="org.ametys.cms.oldcontent.Tab" contextualColor="1" contextualGroup="A" contextualLabel="plugin.web:RIBBON_TABS_TAB_PAGE_LABEL">
            <groups>
                <group label="plugin.cms:RIBBON_TABS_TAB_CONTENT_GROUPS_GROUP_RESTORE_LABEL" icon="">
                    <large></large>
                    <medium>
                        <control id="org.ametys.web.workflow.Restore"/>
                    </medium>
                    <small/>
                </group>
            </groups>
        </tab>

        <tab label="plugin.cms:RIBBON_TABS_TAB_ARCHIVED_CONTENT_LABEL" id="org.ametys.cms.archived.content.Tab" contextualColor="1" contextualGroup="A" contextualLabel="plugin.cms:RIBBON_TABS_TAB_ARCHIVED_CONTENT_LABEL">
            <groups>
                <group label="plugin.cms:RIBBON_TABS_TAB_ARCHIVED_CONTENT_GROUP_ACTIONS_LABEL" icon="">
                    <large></large>
                    <medium>
                        <control id="org.ametys.web.workflow.Unarchive"/>
                    </medium>
                    <small/>
                </group>
            </groups>
        </tab>
        
        <tab label="plugin.cms:RIBBON_TABS_TAB_CONTENT_EDIT_LABEL" id="org.ametys.cms.content.EditionTab" contextualColor="1" contextualGroup="Z" contextualLabel="plugin.cms:RIBBON_TABS_TAB_CONTENT_EDIT_LABEL">
            <groups>
                <group label="plugin.cms:RIBBON_TABS_TAB_CONTENT_EDIT_GROUPS_GROUP_GENERAL_LABEL" icon="" priority="-10">
                    <large>
                        <control id="org.ametys.web.edition.Save"/>
                        <control id="org.ametys.web.edition.UnSave"/>
                        <layout size="small">
                            <control id="org.ametys.cms.edition.Undo"/>
                            <control id="org.ametys.cms.edition.Redo"/>
                        </layout>
                    </large>
                    <medium>
                        <control id="org.ametys.web.edition.Save"/>
                        <layout size="small">
                            <control id="org.ametys.web.edition.UnSave"/>
                            <control id="org.ametys.cms.edition.Undo"/>
                            <control id="org.ametys.cms.edition.Redo"/>
                        </layout>
                    </medium>
                    <small>
                        <control id="org.ametys.web.edition.Save"/>
                        <layout size="very-small">
                            <control id="org.ametys.web.edition.UnSave"/>
                            <control id="org.ametys.cms.edition.Undo"/>
                            <control id="org.ametys.cms.edition.Redo"/>
                        </layout>
                    </small>
                </group>
                <group label="plugin.cms:RIBBON_TABS_TAB_CONTENT_EDIT_GROUPS_GROUP_CLIPBOARD_LABEL" icon="" priority="-5">
                    <large>
                        <control id="org.ametys.cms.edition.clipboard.Paste"/>
                        <control id="org.ametys.cms.edition.clipboard.Cut"/>
                        <control id="org.ametys.cms.edition.clipboard.Copy"/>
                    </large>
                    <medium>
                        <control id="org.ametys.cms.edition.clipboard.Paste"/>
                        <layout size="small">
                            <control id="org.ametys.cms.edition.clipboard.Cut"/>
                            <control id="org.ametys.cms.edition.clipboard.Copy"/>
                        </layout>
                    </medium>
                    <small>
                        <layout size="small">
                            <control id="org.ametys.cms.edition.clipboard.Paste"/>
                            <control id="org.ametys.cms.edition.clipboard.Cut"/>
                            <control id="org.ametys.cms.edition.clipboard.Copy"/>
                        </layout>
                    </small>
                </group>
                <group label="plugin.cms:RIBBON_TABS_TAB_CONTENT_EDIT_GROUPS_GROUP_CHARACTER_LABEL" icon="">
                    <large/>
                    <medium>
                        <layout cols="2" align="middle" size="small">
                            <control id="org.ametys.cms.edition.character.Style" colspan="2"/>
                            <toolbar>
                                <control id="org.ametys.cms.edition.character.Bold"/>
                                <control id="org.ametys.cms.edition.character.Italic"/>
                                <control id="org.ametys.cms.edition.character.Sub"/>
                                <control id="org.ametys.cms.edition.character.Sup"/>
                            </toolbar>
                            <toolbar>
                                <control id="org.ametys.cms.edition.character.AlignLeft"/>
                                <control id="org.ametys.cms.edition.character.AlignCenter"/>
                                <control id="org.ametys.cms.edition.character.AlignRight"/>
                                <control id="org.ametys.cms.edition.character.AlignJustify"/>
                            </toolbar>
                        </layout>
                        <layout align="middle" size="small">
                            <toolbar>
                                <control id="org.ametys.cms.edition.character.UnorderedList"/>
                                <control id="org.ametys.cms.edition.character.OrderedList"/>
                                <control id="org.ametys.cms.edition.character.Outdent"/>
                                <control id="org.ametys.cms.edition.character.Indent"/>
                            </toolbar>
                            <toolbar>
                                <control id="org.ametys.cms.edition.Abbreviation"/>
                                <control id="org.ametys.cms.edition.Acronym"/>
                                <control id="org.ametys.glossary.editor.AddDefinition"/>
                                <control id="org.ametys.cms.edition.Quote"/>
                                <control id="org.ametys.cms.edition.Language"/>
                            </toolbar>
                        </layout>
                    </medium>
                    <small/>
                </group>
                <group label="plugin.cms:RIBBON_TABS_TAB_CONTENT_EDIT_GROUPS_GROUP_INSERT_LABEL" icon="">
                    <large>
                        <control id="org.ametys.cms.edition.table.Insert"/>
                        <control id="org.ametys.plugins.explorer.edition.images.Insert"/>
                        <control id="org.ametys.plugins.explorer.edition.link.Insert"/>
                        <layout align="top" size="small">
                            <control id="org.ametys.inlinemedia.editor.Insert.flash"/>
                            <control id="org.ametys.inlinemedia.editor.Insert.video"/>
                            <control id="org.ametys.pdf2flash.editor.Insert"/>
                        </layout>
                        <layout align="top" size="small">
                            <control id="org.ametys.cms.edition.toc.Insert"/>
                            <control id="org.ametys.cms.edition.symbol.Insert"/>
                            <control id="org.ametys.plugins.forms.Insert"/>
                        </layout>
                        <layout align="top" size="small">
                            <control id="org.ametys.cms.edition.htmlexpert.Insert"/>
                            <control id="org.ametys.web.InsertLastPublication"/>
                            <control id="org.ametys.datainclusion.editor.Query"/>
                        </layout>
                    </large>
                    <medium>
                        <control id="org.ametys.cms.edition.table.Insert"/>
                        <control id="org.ametys.plugins.explorer.edition.link.Insert"/>
                        <control id="org.ametys.plugins.explorer.edition.images.Insert"/>
                        <layout align="top" size="small">
                            <control id="org.ametys.inlinemedia.editor.Insert.flash"/>
                            <control id="org.ametys.inlinemedia.editor.Insert.video"/>
                            <control id="org.ametys.pdf2flash.editor.Insert"/>
                        </layout>
                        <layout align="top" size="small">
                            <control id="org.ametys.cms.edition.toc.Insert"/>
                            <control id="org.ametys.cms.edition.symbol.Insert"/>
                            <control id="org.ametys.plugins.forms.Insert"/>
                        </layout>
                        <layout align="top" size="small">
                            <control id="org.ametys.cms.edition.htmlexpert.Insert"/>
                            <control id="org.ametys.web.InsertLastPublication"/>
                            <control id="org.ametys.datainclusion.editor.Query"/>
                        </layout>
                    </medium>
                    <small>
                        <layout align="top" size="small">
                            <control id="org.ametys.cms.edition.table.Insert"/>
                            <control id="org.ametys.plugins.explorer.edition.images.Insert"/>
                            <control id="org.ametys.plugins.explorer.edition.link.Insert"/>
                        </layout>
                        <layout size="very-small">
                            <control id="org.ametys.inlinemedia.editor.Insert.flash"/>
                            <control id="org.ametys.inlinemedia.editor.Insert.video"/>
                            <control id="org.ametys.pdf2flash.editor.Insert"/>
                        </layout>
                        <layout size="very-small">
                            <control id="org.ametys.cms.edition.toc.Insert"/>
                            <control id="org.ametys.cms.edition.symbol.Insert"/>
                            <control id="org.ametys.plugins.forms.Insert"/>
                        </layout>
                        <layout size="very-small">
                            <control id="org.ametys.cms.edition.htmlexpert.Insert"/>
                            <control id="org.ametys.web.InsertLastPublication"/>
                            <control id="org.ametys.datainclusion.editor.Query"/>
                        </layout>
                    </small>
                </group>
            </groups>
        </tab>
                
        <!-- Cms -->
        <import>plugin:cms://ribbon/cms-ribbon-content.xml</import>

        <!-- Web -->
         <!-- Page access contextual tab -->
        <import>plugin:web://ribbon/cms-ribbon-pageaccess.xml</import>
        <!-- Comments contextual tab -->
        <import>plugin:web://ribbon/cms-ribbon-comments.xml</import>
        <!-- Attachments contextual tab -->
        <tabs>
        <tab label="plugin.web:RIBBON_TABS_TAB_ATTACHMENTS_LABEL" id="org.ametys.web.AttachmentTab" contextualColor="6" contextualLabel="plugin.web:RIBBON_TABS_TAB_ATTACHMENTS_GROUP_LABEL">
            <groups>
                <group label="plugin.web:RIBBON_TABS_TAB_ATTACHMENTS_GROUP_GROUP_FOLDER_LABEL" icon="">
                    <large>
                        <control id="org.ametys.plugins.attachments.resources.Folder.add"/>
                        <control id="org.ametys.plugins.explorer.resources.Folder.cmis"/>
                        <control id="org.ametys.plugins.attachments.resources.Folder.rename"/>
                        <control id="org.ametys.plugins.attachments.resources.Folder.remove"/>
                        <!--<control id="org.ametys.plugins.attachments.resources.Folder.archive"/>-->
                        <control id="org.ametys.plugins.attachments.resources.Search"/>
                    </large>
                    <medium>
                        <control id="org.ametys.plugins.attachments.resources.Folder.add"/>
                        <control id="org.ametys.plugins.explorer.resources.Folder.cmis"/>
                        <layout size="small">
                            <control id="org.ametys.plugins.attachments.resources.Folder.rename"/>
                            <control id="org.ametys.plugins.attachments.resources.Folder.remove"/>
                            <!--<control id="org.ametys.plugins.attachments.resources.Folder.archive"/>-->
                        </layout>
                        <control id="org.ametys.plugins.attachments.resources.Search"/>
                    </medium>
                    <small>
                        <control id="org.ametys.plugins.attachments.resources.Folder.add"/>
                        <control id="org.ametys.plugins.explorer.resources.Folder.cmis"/>
                        <layout size="small">
                            <control id="org.ametys.plugins.attachments.resources.Folder.rename"/>
                            <control id="org.ametys.plugins.attachments.resources.Folder.remove"/>
                            <control id="org.ametys.plugins.attachments.resources.Search"/>
                            <!--<control id="org.ametys.plugins.attachments.resources.Folder.archive"/>-->
                        </layout>
                    </small>
                </group>
                <group label="plugin.web:RIBBON_TABS_TAB_ATTACHMENTS_GROUP_GROUP_FILE_LABEL" icon="" priority="10">
                    <large>
                        <control id="org.ametys.plugins.attachments.resources.File.add"/>
                    
                        <control id="org.ametys.plugins.attachments.resources.File.rename"/>
                        <control id="org.ametys.plugins.attachments.resources.File.remove"/>
                        <control id="org.ametys.plugins.attachments.resources.File.dublincore"/>
                        <control id="org.ametys.plugins.attachments.resources.File.download"/>
                    </large>
                    <medium>
                        <control id="org.ametys.plugins.attachments.resources.File.add"/>
                        <layout size="small">
                            <control id="org.ametys.plugins.attachments.resources.File.rename"/>
                            <control id="org.ametys.plugins.attachments.resources.File.remove"/>
                            <control id="org.ametys.plugins.attachments.resources.File.dublincore"/>
                        </layout>
                        <control id="org.ametys.plugins.attachments.resources.File.download"/>
                    </medium>
                    <small>
                        <layout size="small">
                            <control id="org.ametys.plugins.attachments.resources.File.add"/>
                            <control id="org.ametys.plugins.attachments.resources.File.download"/>
                        </layout>
                        <layout size="small">
                            <control id="org.ametys.plugins.attachments.resources.File.rename"/>
                            <control id="org.ametys.plugins.attachments.resources.File.remove"/>
                            <control id="org.ametys.plugins.attachments.resources.File.dublincore"/>
                        </layout>
                    </small>
                </group>
                <group label="plugin.web:RIBBON_TABS_TAB_RESOURCES_GROUP_GROUP_FILE_CLIPBOARD_LABEL" icon="">
                    <large/>
                    <medium>
                        <control id="org.ametys.plugins.attachments.resources.File.paste"/>
                        <control id="org.ametys.plugins.attachments.resources.File.cut"/>
                        <!--<control id="org.ametys.plugins.attachments.resources.File.copy"/>-->
                    </medium>
                    <small>
                        <layout size="small">
                            <control id="org.ametys.plugins.attachments.resources.File.paste"/>
                            <control id="org.ametys.plugins.attachments.resources.File.cut"/>
                            <!--<control id="org.ametys.plugins.attachments.resources.File.copy"/>-->
                        </layout>
                    </small>
                </group>
                <group label="plugin.web:RIBBON_TABS_TAB_RESOURCES_GROUP_GROUP_IMAGE_LABEL" icon="">
                    <large/>
                    <medium>
                        <control id="org.ametys.plugins.explorer.File.slideshow"/>
                    </medium>
                    <small/>
                </group>
            </groups>
        </tab>
    </tabs>
        <!-- Content attachments contextual tab -->
        <import>plugin:web://ribbon/cms-ribbon-content-attachments.xml</import>
        <!-- Resource explorer contextual tab -->
        <import>plugin:web://ribbon/cms-ribbon-explorer.xml</import>
        <!-- Tags contextual tab -->
        <import>plugin:web://ribbon/cms-ribbon-tags.xml</import>
        <!-- Alias contextual tab -->
        <import>plugin:web://ribbon/cms-ribbon-alias.xml</import>
        <!-- Consistency contextual tab -->
        <import>plugin:web://ribbon/cms-ribbon-consistency.xml</import>

        <!-- Inline Media -->
        <import>plugin:inlinemedia://cms-ribbon.xml</import>
        
        <!-- Forms -->
        <import>plugin:forms://cms-ribbon.xml</import>
        
        <!-- Newsletter contextual tabs -->
        <import>plugin:newsletter://cms-ribbon.xml</import>        
        
        <!-- Data inclusion contextual tab -->
        <import>plugin:datainclusion://cms-ribbon.xml</import>
        
        <!-- Skin editor contextual tab -->
        <import>plugin:skineditor://cms-ribbon.xml</import>
        
        <!-- Glossary -->
        <import>plugin:glossary://cms-ribbon.xml</import>
        
        <!-- Survey -->
        <import>plugin:survey://cms-ribbon.xml</import>
        
        <!-- UGC -->
        <import>plugin:ugc://cms-ribbon.xml</import>
        
    </tabs>

</ribbon>

Merci

Loïc Wyffels

Offline

#7 29/11/2012 18:01:09

Raphaël Franchet
Expert Team
From: Toulouse
Registered: 10/08/2010
Posts: 1,117

Re: Moteur de recherche Ametys & service CMIS

Quand vous incluez ces fichiers, il faut retirer la balise <tabs> englobante.

Du coup, actuellement, vous avez en plein milieu de votre fichier une balise <tabs> (juste après <!-- Attachments contextual tab -->) et une </tabs> (juste avant <!-- Content attachments contextual tab -->)

J'avais omis de préciser cela.


Raphael Franchet
Expert Ametys

Offline

#8 29/11/2012 18:36:58

Loïc Wyffels
Guest
Registered: 23/11/2012
Posts: 12

Re: Moteur de recherche Ametys & service CMIS

Ok, j'ai enlevé les 2 balises en trop. par contre je n'ai pas le bouton "cmis". J'ai sans doute fait une autre erreur..

Offline

#9 29/11/2012 19:01:10

Raphaël Franchet
Expert Team
From: Toulouse
Registered: 10/08/2010
Posts: 1,117

Re: Moteur de recherche Ametys & service CMIS

Avec l'erreur que vous aviez fait au-dessus, normalement vous n'auriez dû plus avoir aucun outil de les pièces jointes de pages. Si vous l'aviez toujours à ce moment là c'est peut-être que vous modifiez le mauvais fichier de ribbon xml

Ce que vous pouvez faire, c'est par exemple une erreur manifeste dans le fichier en ajoutant un élémént xml non fermé : <test>. Vous devriez avoir une erreur au chargement.

Si ce n'est pas le cas, c'est donc que vous modifiez le mauvais fichier.


Raphael Franchet
Expert Ametys

Offline

Board footer

Powered by FluxBB