To setup your website, the instructions below describe the folders to create in the following locations :
- /apps/an-scf-sandbox
this is where custom applications and templates reside - /etc/designs/an-scf-sandbox
this is where downloadable design elements reside - /content/an-scf-sandbox
this is where the downloadable web pages reside
The code in this tutorial will rely on the main folder name being the same for the application, design, and content. If you choose some other name for your website, then always replace an-scf-sandbox with the name you have chosen.
註解:
About names :
- the names seen in CRXDE are node names which form the path to addressable content
- node names may contain spaces, but when used in an URI, the space must be encoded either as '%20' or '+'
- node names may contain hyphens and underscores, but they must be encoded when referenced as a package name within a Java file. Both hyphens and underscores are escaped with underscore followed by their unicode value :
- hypen becomes '_002d'
- underscore becomes '_005f'
- hypen becomes '_002d'
The /apps directory in the repository contains the code with implements the behavior and rendering of the pages served from the /content directory.
The /apps directory is protected and not publicly accessible as are the /content and /etc/designs directories.
The /etc/designs directory contains the images, scripts, and stylesheets to be downloaded along with the page content.
-
To use the Deisgner tool in the Classic UI, browse to http://<server>:<port>/miscadmin.
Note : If you use CRXDE Lite to create a Node of type cq:Page, the Access Control and Replication would not be set to default settings for a page.
The /content directory in the respository is where the website content resides. The paths under /content comprise the paths of the URL for browser requests.
After the page template is created as part of the initial application, the initial page content can be created based on the template.... ⇒