cancel
Showing results for 
Search instead for 
Did you mean: 

Add Content To An Alfresco Share Page

d_franz
Champ on-the-rise
Champ on-the-rise
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-pa...
1 REPLY 1

ddraper
World-Class Innovator
World-Class Innovator
Hi,

The structure looks correct and you're placing the JAR in the correct location (I'm assuming that you've restarted Tomcat?). I'm not sure why you're not seeing the new module appearing as an option. I can only assume there is either an error in your path or that the server isn't correct because everything else looks absolutely fine so I'm at something of a loss to suggest what is going wrong otherwise.

Regards,
Dave