appName = application.ptBlog2.getAppName(); appConfig = application.ptBlog2.getAppConfig(); // Set the UI theme from the Custom Scripts if ( StructKeyExists(attributes,"themeName") AND LEN(TRIM(attributes.themeName)) ) uiTheme=TRIM(attributes.themeName); else uiTheme = themeName=application.ptBlog2.getThemeName(); // load jQuery headers application.ptBlog2.scripts.loadJQuery(); // load header for jQuery UI application.ptBlog2.scripts.loadJQueryUI(themeName=uiTheme); // load headers for ADF lightbox application.ptBlog2.scripts.loadADFLightbox(); // load headers for jQuery DataTables application.ptBlog2.scripts.loadJQueryDataTables(); elementName = "#appName# Configuration"; ManagePageTitleText = "Manage #appName# Configuration"; showResetLink = false; showResetRebuildLink = false; showDeleteLink = false; showHideConfigDataOption = false; appConfigArray = arrayNew(1); appConfig = structNew(); formID = 0; dataPageID = 0; configEditLinkText = "Add Configuration"; // check to see if the application configuration element exists elementExists = application.ptBlog2.ceData.elementExists(elementName); if( elementExists ) { formID = application.ptBlog2.ceData.getFormIDByCEName(elementName); // get the results for the element appConfigArray = application.ptBlog2.ceData.getCEData(elementName); if( ArrayLen(appConfigArray) ) { showResetLink = true; showResetRebuildLink = true; showDeleteLink = false; //true // setup some variables for the configuration links appConfigValues = appConfigArray[1].values; formID = appConfigArray[1].formID; dataPageID = appConfigArray[1].pageID; configEditLinkText = "Edit Configuration"; } } ##configWrapper { width: 620px; /* border: 1px solid ##000; */ float: left; } ##manageTitle { margin-top: 14px; margin-bottom: 10px; } ##manageHeaderText { margin-top: 14px; margin-bottom: 10px; } .editConfigBtn { cursor: pointer; padding: 4px; margin-top: 8px; text-decoration: none; } ##configBtn { cursor: pointer; padding: 4px; width: 200px; margin-top: 8px; text-decoration: none; } ##configList { margin: 10px; } /* ##configList dt { background-color: ##c0c0c0; float: left; clear: left; border: 1px solid ##000; padding: 5px; } ##configList dd { float: left; border: 1px solid ##000; padding: 5px; } */ ##configTable th { font-family: Arial; font-size: 12px; font-weight: bold; } ##configTable td { font-family: Arial; font-size: 11px; } ##configDeleteLink{margin-top:15px;} ##configResetLink{margin-top:15px;} ##configResetRebuildLink{margin-top:15px;margin-bottom:30px;} .config_float_clear{clear:both;} // Load the inline CSS as a CSS Resource application.ADF.scripts.addHeaderCSS(blogAppConfigHeaderCSS, "TERTIARY"); // PRIMARY, SECONDARY, TERTIARY // Load the inline JS as a JS Resource application.ADF.scripts.addFooterJS(blogAppConfigFooterJS, "TERTIARY"); // PRIMARY, SECONDARY, TERTIARY
#ManagePageTitleText#
#application.ptBlog2.ui.buildAddEditLink( linkTitle=configEditLinkText ,formName=elementName ,dataPageID=dataPageID ,refreshparent="true" ,urlParams="" ,lbTitle=configEditLinkText ,linkClass="editConfigBtn ui_button ui-state-default ui-corner-all" )# Show/Hide Configuration #application.ptBlog2.ui.buildAddEditLink( linkTitle=configEditLinkText ,formName=elementName ,dataPageID=dataPageID ,refreshparent="true" ,urlParams="" ,lbTitle=configEditLinkText ,linkClass="editConfigBtn ui_button ui-state-default ui-corner-all" )#
style="display:none;">
Config Field Name Config Value
#key# #application.ADF.csData.parseCSURL(appConfigValues[key])# #appConfigValues[key]#