09-12-2009 02:37 AM
09-13-2009 09:26 AM
09-14-2009 02:07 AM
09-14-2009 02:56 AM
09-14-2009 04:46 AM
<#if user.isAdmin>
<div class="toolbar">
<a href="#" id="${args.htmlid}-createSite-button" class="theme-color-1">${msg("link.createSite")}</a>
</div>
</#if>
09-14-2009 05:51 AM
09-14-2009 06:22 AM
09-18-2009 08:41 AM
11-09-2009 07:08 AM
02-09-2010 04:43 AM
If you simply want to prevent the Create Site-link from being shown you could disable it in the file my-sites.get.html.ftl.
You should be able to use something like this to enable it for Admin users only:<#if user.isAdmin>
<div class="toolbar">
<a href="#" id="${args.htmlid}-createSite-button" class="theme-color-1">${msg("link.createSite")}</a>
</div>
</#if>
(That's also how the Administration link in the header is shown/hidden.)
However, this will not disable the functionality itself, merely the link.
<#if !isGuest>
<#if user.isAdmin>
<ul class="create-site-menuitem">
<li>
<a href="#" onclick="thisHeader.showCreateSite(); return false;">${msg("header.sites.createSite")}</a>
</li>
</ul>
</#if>
</#if>
<#if user.isAdmin>
<div class="detail-list-item">
<h4 class="theme-color-2">${msg("header.customiseDashboard")}</h4>
<div>${msg("text.customiseDashboard")}</div>
<div><a href="${url.context}/page/customise-user-dashboard" class="theme-color-2">${msg("link.customiseDashboard")}</a></div>
</div>
<div class="detail-list-item last-item">
<h4 class="theme-color-2">${msg("header.createSite")}</h4>
<div>${msg("text.createSite")}</div>
<div><a id="${args.htmlid}-createSite-button" href="#" class="theme-color-2">${msg("link.createSite")}</a></div>
</div>
<#else>
<div class="detail-list-item last-item">
<h4 class="theme-color-2">${msg("header.customiseDashboard")}</h4>
<div>${msg("text.customiseDashboard")}</div>
<div><a href="${url.context}/page/customise-user-dashboard" class="theme-color-2">${msg("link.customiseDashboard")}</a></div>
</div>
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.