Add a new page to Alfresco Share with link in Share Header | Code Factory

<?xml version='1.0' encoding='UTF-8'?>
<page>
<title>Hello World Home</title>
<title-id>page.helloworldhome.title</title-id>
<description>Hello World Home Description</description>
<description-id>page.helloworldhome.description</description-id>
<template-instance>helloworldhome-three-column</template-instance>
<authentication>none</authentication>
</page>
<?xml version='1.0' encoding='UTF-8'?>
<template-instance>
<template-type>org/alfresco/demo/helloworldhome</template-type>
</template-instance>
This is just a test page. Hello World!
page.helloworldhome.title=Hello World 
page.helloworldhome.description=Hello World Home Description
<bean id="org.alfresco.demo.resources" class="org.springframework.extensions.surf.util.ResourceBundleBootstrapComponent">
<property name="resourceBundles">
<list>
<value>alfresco.web-extension.messages.helloworldhome</value>
</list>
</property>
</bean>
<#include "/org/alfresco/include/alfresco-template.ftl" />
<@templateHeader></@>
<@templateBody>
<@markup id="alf-hd">
<div id="alf-hd">
<@region scope="global" id="share-header" chromeless="true"/>
</div>
</@>
<@markup id="bd">
<div id="bd">
<h1>
This is just a test page. Hello World!</h1>
</div>
</@>
</@>
<@templateFooter>
<@markup id="alf-ft">
<div id="alf-ft">
<@region id="footer" scope="global" />
</div>
</@>
</@>
{
id: "HEADER_CUSTOM",
name: "alfresco/menus/AlfMenuBarItem",
config: {
id: "HEADER_CUSTOM",
label: "My Menu",
targetUrl: "helloworldhome"
}
}

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Code Factory

Code Factory

More from Medium

OCI APIGW & JWT for invoking OIC with/without credentials — Part I

Azure Kubernetes Service (AKS) — Industry Use Case

Exclude aws dependencies from spring boot autoconfiguration using application.yml

How to set up an apache server on Linux