application.ptBlog2.Scripts.loadjQuery();
application.ptBlog2.Scripts.loadADFLightbox();
blogData = structNew();
elementName = '';
if ( StructKeyExists(attributes.elementInfo.ElementParams,"PROPERTIES") AND attributes.elementInfo.ElementParams.PROPERTIES.recordCount GT 0 AND StructKeyExists(attributes.elementInfo.ElementParams.PROPERTIES,"formname") )
elementName = attributes.elementInfo.ElementParams.PROPERTIES.FORMNAME[1];
blogDataArray = attributes.elementInfo.elementData.propertyValues;
if( arrayLen(blogDataArray) )
{
blogData = blogDataArray[1].values;
blogData.dataPageID = blogDataArray[1].pageID;
}
// Load the inline CSS as a CSS Resource
application.ptBlog2.scripts.addHeaderCSS(blogMgmtHeaderCSS, "SECONDARY"); // PRIMARY, SECONDARY, TERTIARY
#application.ptBlog2.ui.buildAddEditLink(
linkTitle="Edit Blog Configuration"
,formName=elementName
,dataPageID=blogData.dataPageID
,refreshparent="true"
,urlParams=""
,linkClass="blogManagementAddBtn ui_button ui-state-default ui-corner-all"
)#