}
logger.info("isMetaInfoInWorkingState:" + isMetaInfoInWorkingState);
if(isMetaInfoInWorkingState)
{
return new ToolbarButton("",
getLocalizedString(locale, "tool.structuretool.toolbarV3.pageCoverLabel"),
getLocalizedString(locale, "tool.structuretool.toolbarV3.pageCoverTitle"),
"ViewSiteNode!V3.action?siteNodeId=" + siteNodeId + "&stay=true",
"",
"pageCover");
}
else
{
return new ToolbarButton("",
getLocalizedString(locale, "tool.structuretool.toolbarV3.pageCoverLabel"),
getLocalizedString(locale, "tool.structuretool.toolbarV3.pageCoverTitle"),
"javascript:alert('Cannot edit this page. You must first set the meta info to working. Do this by entering node properties and changing the state to working.');",
"",
"pageCover");
}
}
catch(Exception e)
{
return new ToolbarButton("",
getLocalizedString(locale, "tool.structuretool.toolbarV3.pageCoverLabel"),
getLocalizedString(locale, "tool.structuretool.toolbarV3.pageCoverTitle"),
"javascript:alert('Cannot edit this page. You must first set the meta info to working. Do this by entering node properties and changing the state to working.');",
"",
"pageCover");