Portal Framework_ source code/queries
VF page source code using Static resource-:
<apex:page showHeader="false" sidebar="false" standardStylesheets="false" applyHtmlTag="false" applyBodyTag="false" docType="html-5.0" controller="clcommon.PortalActions"> <apex:include pageName="clcommon__ResolveNamespace"/> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Lato&subset=latin,latin-ext"/> <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro"/> <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"/> <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"/> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500"/> <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"/> </head> <body> <div id="app" pageId="CL_Portal_Filter1"></div> <script src="../../soap/ajax/29.0/connection.js" type="text/javascript"></script> <script src="../../soap/ajax/29.0/apex.js" type="text/javascript"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjs/9.5.0/math.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.11/ace.js"></script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.11/ext-language_tools.min.js" ></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/dompurify/1.0.4/purify.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/mobile-detect/1.4.3/mobile-detect.min.js"></script> <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAK6npp4m0Xoa5na1QSAr4X2Y5fGlzxirI&libraries=places"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.1/moment.min.js"></script> <script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"> </script> <script> ((portalext, $) => { portalext.datesAllowed = (selectedDate, daysCountString) => { const selectedDateObj = moment(selectedDate); const mNow = moment().startOf('day'); const addOperation = daysCountString.slice(0,1) == "+" ? true : false; const daysCount = daysCountString.slice(1); const maxDate = addOperation ? moment().startOf('day').add('days', daysCount) : mNow; const minDate = addOperation ? mNow : moment().startOf('day').subtract('days', daysCount); return selectedDateObj >= minDate && selectedDateObj <= maxDate; } })((window.portalext = window.portalext || {}), jQuery); </script> <apex:outputText rendered="{!$CurrentPage.parameters.debug == 'true'}"> <link rel="stylesheet" href="http://localhost:8080/dist/builder.mui.css"/> <script src="http://localhost:8080/dist/builder.mui.dev.js"></script> </apex:outputText> <apex:outputText rendered="{!$CurrentPage.parameters.debug != 'true'}"> <apex:stylesheet value="{!URLFOR($Resource.Builder_mui_css_Summer23_Build3)}"/> <apex:includeScript loadOnReady="true" value="{!URLFOR($Resource.Builder_mui_min_js_Summer23_Build3)}"/> </apex:outputText> </body> </html></apex:page>
Document extraction query-:
clcommon.PortalActions.extractBuilderConfigurations(documentRecordId);
Static Content Query-:
select id, name from clcommon__static_content__c where name like 'portal_%'
Portal Objects-:
- Css_Configuration__c
- Action__c
- Actors__c
- ComponentStructure__c
- Disclosure_Definition__c
- NavigationStructure__c
- Portal_Layout__c
- Static_Content__c
Default values for External ID Field-:
- Css_Configuration__c –> Name field Value
- Action__c –> Nav Name + Actor Name + Action Name + Action Display type (Component/Record)
- Actors__c --> Nav Name + Actor Name
- ComponentStructure__c --> Name field Value
- Disclosure_Definition__c --> Name field Value
- NavigationStructure__c --> Name field Value
- Portal_Layout__c --> Title Field Value
- Static_Content__c --> Name field Value