04-13-2011 09:06 PM
<#if item.type = "user">
<li class="user-menuitem HEADER-MARKER">
<#if user.properties.avatar??>
<#assign avatar>${url.context}/proxy/alfresco/api/node/${user.properties.avatar?replace('://','/')}/content/thumbnails/avatar?c=force</#assign>
<#else>
<#assign avatar>${url.context}/res/components/images/no-user-photo-64.png</#assign>
</#if>
<a class="avatar" ${attrHref} tabindex="0"><img src="${avatar}" alt="avatar" /></a>
<span class="user-status">
<textarea id="${id}-statusText" tabindex="0">${userStatus?html}</textarea>
<div id="${id}-statusTime" class="user-status-time" title="${userStatusTime?html}"></div>
<div>
<span id="${id}-submitStatus" class="yui-button yui-push-button">
<span class="first-child">
<button type="button" tabindex="0" title="${msg("header.submit-status.description")}"><span>${msg("header.submit-status.label")}</span></button>
</span>
</span>
</div>
</span>
</li>
<#else>
<#assign attrTarget><#if item.type = "external-link">target="_blank"</#if></#assign>
<li><span ${attrStyle}><a ${attrTitle} ${attrHref} tabindex="0" ${attrTarget!""}>${msg(item.label!"")}</a></span>
<#if item.type = "container"><@subMenu item /></#if>
</li>
</#if>
With this:
<#if item.type = "user">
<li class="user-menuitem HEADER-MARKER">
<#if user.properties.avatar??>
<#assign avatar>${url.context}/proxy/alfresco/api/node/${user.properties.avatar?replace('://','/')}/content/thumbnails/avatar?c=force</#assign>
<#else>
<#assign avatar>${url.context}/res/components/images/no-user-photo-64.png</#assign>
</#if>
<a class="avatar" ${attrHref} tabindex="0"><img src="${avatar}" alt="avatar" /></a>
</li>
<#else>
<#assign attrTarget><#if item.type = "external-link">target="_blank"</#if></#assign>
<li><span ${attrStyle}><a ${attrTitle} ${attrHref} tabindex="0" ${attrTarget!""}>${msg(item.label!"")}</a></span>
<#if item.type = "container"><@subMenu item /></#if>
</li>
</#if>
04-14-2011 02:24 AM
10-30-2012 08:43 AM
<alfresco-config>
<config replace="true">
<header>
<app-items>
….
….
….
</app-items>
<user-items>
<item type="container" id="user" icon="" description="">
<container-group id="usermenu" label="">
<!–<item type="user" id="status">{userprofilepage}</item>–>
<item type="link" id="my-profile">{userprofilepage}</item>
<item type="link" id="change-password" condition="user.capabilities.isMutable">/user/change-password</item>
<item type="external-link" id="help">{share-help}</item>
<item type="link" id="logout" condition="!context.externalAuthentication">/dologout</item>
</container-group>
</item>
</user-items>
<dependencies>
<css src="/modules/create-site.css" />
<css src="/modules/header/sites.css" />
<js src="/modules/create-site.js" />
<js src="/modules/header/sites.js" />
<js src="/scripts/jsButton.js" />
</dependencies>
</header>
</config>
</alfresco-config>
Uncaught TypeError: Cannot read property 'value' of null header.js:350
Header_configureMyStatus header.js:350
Header_onReady header.js:136
Base_onReadyWrapper alfresco.js:7510
executeItem event-debug.js:1698
_tryPreloadAttach event-debug.js:1727
f yuiloader-debug.js:1113
this._currentStatus = this.widgets.statusBox.value;
this.widgets.statusBox = Dom.get(this.id + "-statusText");
if (this.widgetn.statusBox == null){
return;
}
06-02-2014 10:02 AM
<extension>
<modules>
<module>
<id>Main module of my custom extension</id>
<version>${project.version}</version>
<auto-deploy>true</auto-deploy>
<customizations>
<customization>
<!– Order matters here! target before source, always! –>
<targetPackageRoot>org.alfresco</targetPackageRoot>
<sourcePackageRoot>my-custom.main</sourcePackageRoot>
</customization>
</customizations>
</module>
</modules>
</extension>
06-05-2014 08:27 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.