flox1an / alfresco-share-clipboard

A clipboard implementation for Alfresco Share
14 stars 14 forks source link

Add Clipboard to Repository view #4

Open nandusmasta opened 8 years ago

nandusmasta commented 8 years ago

Hey. In our organization we use the share repository for documents and we need a clipboard for it, your's work great in that sense, but the module controls are only showing up on the documentlibrary view for us. The actions are always available, but the Clipboard Menu and selected items tree component, only show up on said view; when we need them on the repository. How can we modify your module, to show those controls on both views?

nandusmasta commented 8 years ago

I ended up doing this myself by adding the control, in the alfresco-share-clipboard.xml within /shared/classes/alfresco/site-data/extensions folder, with the following code:

            <component>
                <scope>template</scope>
                <region-id>actions-common</region-id>
                <source-id>repository</source-id>
                <sub-components>
                    <sub-component id="alfresco-share-clipboard-menu" index="10">
                        <url>/components/clipboard/menu</url>
                    </sub-component>
                </sub-components>
            </component>

This added the clipboard menu control to the filebrowser header, but not the selected tree menu in left bar, under the tags tree. That one I still don't know how to make it available in the repository view.

nandusmasta commented 3 years ago

Hey guys. After a couple of years, while doing an upgrade, I found out how to add the treeview component to the repository view. It's quite simple in the end. All you have to do is add the following code to the same file.

                            <component>
                <scope>template</scope>
                <region-id>tags</region-id>
                <source-id>repository</source-id>
                <sub-components>
                    <sub-component id="alfresco-share-clipboard-list" index="2000">
                        <url>/components/documentlibrary/clipboard</url>
                    </sub-component>
                </sub-components>
            </component>