Zawartość pomocy dla wersji :

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.

Uwaga:

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'

Setup the Application Directory (/apps)

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.

  1. Create /apps/an-scf-sandbox folder.

    Using CRXDE Lite, in the explorer pane

    1. select the /apps folder
    2. right-click Create... or pull down the Create... menu
    3. select Create Folder... .
    4. in the Create Folder dialog, enter an-scf-sandbox
    5. click OK
  2. Create components subfolder.

    1. select the /apps/an-scf-sandbox folder
    2. click Create > Create Folder
    3. in the Create Folder dialog, enter components
    4. click OK
  3. Create templates subfolder.

    1. select the /apps/an-scf-sandbox folder
    2. click Create > Create Folder
    3. in the Create Folder dialog, enter templates
    4. click OK
    1. re-select /apps/an-scf-sandbox
    2. select Save All

    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.

  4. The structure in the explorer pane of CRXDE Lite should now look something like this:

    chlimage_1

Setup the Design Directory (/etc/designs)

The /etc/designs directory contains the images, scripts, and stylesheets to be downloaded along with the page content.

  1. 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.

  2. In the explorer pane, select the Designs folder and then click New > New Page.

    Enter:

    • Title : An SCF Sandbox
    • Name : an-scf-sandbox
    • select Design Page Template

    Click Create

     

    chlimage_1
  3. Refresh the explorer pane if "An SCF Sandbox" folder does not appear.

  4. 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.

    chlimage_1

Setup the Content Directory (/content)

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....  

Ta zawartość jest licencjonowana na warunkach licencji Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Posty z serwisów Twitter™ i Facebook nie są objęte licencją Creative Commons.

Informacje prawne   |   Zasady prywatności online