AnsweredAssumed Answered

Including a sub-component inside the document library

Question asked by douglascrp Moderator on Nov 13, 2015
Latest reply on Nov 15, 2015 by douglascrp
Hello.

I'm trying to develop a custom code which looks almost like the same idea described on this blog post https://www.alfresco.com/blogs/developer/2011/09/02/auto-readme-extension-example/

What I have to do is find how to make my sub-component to be placed between the toolbar and the doclist, just like the readme div show at the post's images.

I've tried to se the set the component using no index, and several values to the index property, but all I got is the sub-component placed before the toolbar or after the doclist.

The config I'm using is:


<module>
            <id>Exibe pendencias prontuario</id>
            <auto-deploy>true</auto-deploy>
            <components>
                <component>
                    <scope>template</scope>
                    <region-id>documentlist_v2</region-id>
                    <source-id>documentlibrary</source-id>
                    <sub-components>
                        <sub-component id="Pendencias_Prontuario" index="1">
                            <url>/blog/demo/new-content</url>
                        </sub-component>
                    </sub-components>
                </component>
            </components>
        </module>

Outcomes