컨트롤러 파일 정보

컨트롤러 파일은 페이지의 남은 부분에 대해 렌더링 시퀀스를 동적으로 시작하는 작은 HTML 페이지입니다. 사이트의 모든 페이지 동작에 영향을 주도록 사용자정의를 적용할 수 있는 첫번째 위치입니다.

컨트롤러 파일의 기본 작업은 컨트롤러 JavaScript의 실행 환경을 제공하고 호스트하는 것입니다. 그런 후 컨트롤러 JavaScript가 페이지를 로드하고 표시합니다. 컨트롤러 파일의 사용자정의는 컨트롤러 JavaScript의 작업을 무효화하고 이에 영향을 주는 기능을 제공합니다.

기본 컨트롤러 파일

Oracle Content Management 사이트를 처음 생성하면 기본 컨트롤러 파일인 controller.html이 사이트와 연관됩니다.

<!DOCTYPE html>
<html>
<head>
<!-- The following meta tag is used for Internet Explorer browsers. It indicates that the browser should use the latest rendering mode to display
    the web page. -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">

<!-- The following meta tag is used for browsers on mobile devices to set the initial viewport scale to the full page. -->
<meta name="viewport" content="initial-scale=1">

<!-- The following script initially defines the SCS object. The SCS object must be present, and this variable name is reserved for use by Oracle Content Management.. -->
<script type="text/javascript">
var SCS = { sitePrefix: '/SampleSite/' };
</script>

<!-- The following script loads the full controller JavaScript, which is used to display the web page. -->
<script src="/SampleSite/_sitesclouddelivery/renderer/controller.js"></script>
</head>

<!-- The body tag of the controller must have the id scsControllerBody. This identifier is used by the Controller JavaScript. If JavaScript is not enabled on the browser, the noscript tag content is displayed.-->
<body id="scsControllerBody"><noscript>This site requires JavaScript to be enabled.</noscript>

<!-- The following image tag displays an animated circle by default if it takes too long for a page to display. The wait image  must have the id scsWaitImage. -->
<img id="scsWaitImage" style="display: none; margin-top: 5%; margin-left: auto; margin-right: auto;" src="data:image/png;base64,..." />
</body></html>