AnsweredAssumed Answered

Add Content To An Alfresco Share Page

Question asked by d_franz on Oct 2, 2012
Latest reply on Oct 2, 2012 by ddraper
I tried the following tutorial in my Alfresco Community v4.0.0:
http://blogs.alfresco.com/wp/ddraper/2011/07/22/how-to-add-content-to-an-alfresco-share-page/

But I don't get the new module under the "deploy modules" Page.

What I have done:
First I created following folder structure:

\alfresco
——\site-data
————\extensions
—————–\blog-demo.xml
——\site-webscripts
————\new-content.get.desc.xml
————\new-content.get.html.ftl

Out of this structure I created the JAR file I placed under ..\tomcat\webapps\share\WEB-INF\lib

The Files are as follows:

blog-demo.xml
<extension>
    <modules>
        <module>
            <id>Blog Module (New Content)</id>
            <components>
                <component>
                    <region-id>navigation</region-id>
                    <source-id>documentlibrary</source-id>
                    <scope>template</scope>
                    <sub-components>
                        <sub-component id="New_Content" index="25">
                            <url>/blog/demo/new-content</url>
                        </sub-component>
                    </sub-components>
                </component>
            </components>
        </module>
    </modules>
</extension>

new-content.get.desc.xml
<webscript>
    <shortname>New Content</shortname>
    <url>/blog/demo/new-content</url>
    <family>Blog Demo</family>
</webscript>

new-content.get.html.ftl
<div>
    Hello World!
</div>

I tried this to finally remove some buttons as mentioned in this tutorial: http://blogs.alfresco.com/wp/ddraper/2011/07/27/how-to-hide-content-on-an-existing-alfresco-share-page/

Outcomes