Show in site tree button for admin toolbar

Description

In FC5.0, the admin tab had this function, which basically brought up the following link: #application.url.webtop#/index.cfm?sec=site&rootobjectid=#request.navid#. I would like to see something similar in the new detailed admin tray. I think all it would take is to add a button using /core/webskin/types/displayAdminToolbarDetailed.cfm.

Environment

None

Activity

Show:

Blair McKenzie November 4, 2018 at 11:15 PM

Have added a site tree link to the tray, under the webtop link.

Geoff Bowers March 7, 2013 at 1:25 AM

Should only be visible in the toolbar for content types that have bUseInTree="true"

Tomek Kott September 8, 2009 at 9:19 PM

The following code works. If it is added, then line 36 of displayAdminToolbar needs to be changed to "detail":{ index:1, height:170 } (height gets changed).

<sec:CheckPermission objectid="#stObj.objectid#" typename="#stObj.typename#" permission="Edit">
<cfif not stObj.typename eq "farCOAPI">
<cfset editurl = "#application.url.webtop#/index.cfm?sec=site&rootobjectid=#request.navid#" />

<cfsavecontent variable="html">
<cfoutput>
{
xtype:"tbbutton",
iconCls:"edit_icon",
text:"Edit Site",
listeners:{
"click":{
fn:function(){
window.open("#editurl#","Edit #stObj.label#","");
}
}
}
}
</cfoutput>
</cfsavecontent>
<cfset arrayappend(aActions,html) />
</cfif>
</sec:CheckPermission>

Tomek Kott September 5, 2009 at 4:12 PM

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created September 5, 2009 at 4:11 PM
Updated November 4, 2018 at 11:15 PM
Resolved November 4, 2018 at 11:15 PM