To setup your website, the instructions below describe the folders to create in the following locations:
This is where custom applications and templates reside
This is where downloadable design elements reside
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.
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:
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.
Using CRXDE Lite, in the explorer pane
Create components subfolder.
Create templates subfolder.
As with any editing process, save often. If you run into problems with entering data, it may be either because your login has timed out or you need to save previous edits.
The structure in the explorer pane of CRXDE Lite should now look something like this:
The /etc/designs directory contains the images, scripts, and stylesheets to be downloaded along with the page content.
To use the Designer tool in the Classic UI, browse to https://<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.
In the explorer pane, select the Designs folder and then click New > New Page.
Refresh the explorer pane if “An SCF Sandbox” folder does not appear.
Return to CRXDE Lite (http:// localhost:4502/crx/de) and expand /etc/designs to see the node named “an-scf-sandbox”.
In the right, lower pane of CRXDE, you can view the Properties tab, Access Control tab and Replication tab to see what was defined using the Design Page Template.
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.