09-23-2011 04:01 PM
09-23-2011 05:26 PM
<div class="main-menu-wrapper">
<@region id="menu" scope="global"/>
</div>
<#nested>
<div id="footer">
<div class="copyright"><a href="http://www.alfresco.com">Alfresco.com</a></div>
</div>
changes to look something like this:
<div class="main-menu-wrapper">
<@region id="menu" scope="global"/>
</div>
<div class="breadcrumb-wrapper">
<@region id="breadcrumb" scope="global"/>
</div>
<#nested>
<div id="footer">
<div class="copyright"><a href="http://www.alfresco.com">Alfresco.com</a></div>
</div>
Then, to map that new breadcrumb region to a particular component globally you would add a new file named "global.breadcrumb.xml" in the "surf/site/components" folder (alongside the existing one "global.menu.xml"). If you're going to give your breadcrumb component a URI of "menu/breadcrumb" then global.breadcrumb.xml would look something like this:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<component>
<guid>global.breadcrumb</guid>
<component-type-id>webscript</component-type-id>
<title>global.breadcrumb</title>
<description>global.breadcrumb</description>
<url>/menu/breadcrumb</url>
<resources/>
<scope>global</scope>
<source-id>global</source-id>
<region-id>breadcrumb</region-id>
<properties/>
</component>
Now create your breadcrumb component in the "WEB-INF/webscripts/menu" folder by adding three new files: breadcrumb.get.desc.xml, breadcrumb.get.js, and breadcrumb.get.html.ftl. The javascript file is probably the same as what you've just tried in page.js. The ftl file is just the FreeMarker to render your breadcrumb. The XML file is your webscript descriptor - just copy it from menu/top.get.desc.xml and adjust the three properties in it.09-26-2011 03:22 PM
09-26-2011 04:42 PM
09-27-2011 04:14 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.