コントローラ・ファイルについて

コントローラ・ファイルは、ページの残りのレンダリング・シーケンスを動的に開始する小さい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>