Index: openacs-4/packages/acs-core-docs/www/eng-standards-filenaming.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/eng-standards-filenaming.adp,v diff -u -r1.1.2.5 -r1.1.2.6 --- openacs-4/packages/acs-core-docs/www/eng-standards-filenaming.adp 23 Jun 2016 08:32:45 -0000 1.1.2.5 +++ openacs-4/packages/acs-core-docs/www/eng-standards-filenaming.adp 19 Nov 2016 09:21:53 -0000 1.1.2.6 @@ -1,5 +1,5 @@ -{/doc/acs-core-docs {Documentation}} {ACS File Naming and Formatting Standards} +{/doc/acs-core-docs {ACS Core Documentation}} {ACS File Naming and Formatting Standards} ACS File Naming and Formatting Standards
  • housing procedures, packages, data models and other prerequisite code Essentially, we want our files named in a fashion that reflects their purpose.

  • -

    Under the page root (and the template root if using the -Style package):

      +

    Under the page root:

    • For naming files that enable a specific action on an object, use this format:

      object-verb.extension

      For example, the page to erase a user's portrait from the @@ -42,9 +41,7 @@

    • For naming files that display the properties of a primary object - such as the bookmark object within the bookmark module - use this -convention:

      -one.extension -

      For example, the page to view one bookmark is /bookmarks/one.tcl. Note that no verb is +convention:

      one.extension

      For example, the page to view one bookmark is /bookmarks/one.tcl. Note that no verb is necessary for display-type files.

    • Otherwise, if the object to be displayed is not the primary @@ -84,7 +81,7 @@

    URLs

    File names also appear within pages, as linked URLs and form -targets. When they do, always use abstract URLs (e.g., user-delete instead of user-delete.tcl), because they enhance +targets. When they do, always use abstract URLs (e.g., user-delete instead of user-delete.tcl), because they enhance maintainability.

    Similarly, when linking to the index page of a directory, do not explicitly name the index file (index.tcl, index.adp, index.html, etc.). Instead, use just the directory name, for both relative links (subdir/) and absolute links (/top-level-dir/). If linking to the @@ -175,7 +172,7 @@ -- author -- created -- --- $‌Id: eng-standards-filenaming.html,v 1.48.2.10 2016/06/21 07:44:36 gustafn Exp $ +-- $‌Id$

    Of course, replace "--" with the comment delimiter appropriate for the language in which you are programming.

    @@ -219,8 +216,8 @@

    Tcl Library Files

    Further standards for Tcl library files are under discussion; we -plan to include naming conventions for procs.

    ($‌Id: eng-standards-filenaming.html,v 1.48.2.10 -2016/06/21 07:44:36 gustafn Exp $)
    +plan to include naming conventions for procs.

    ($‌Id: filenaming.xml,v 1.7.2.2 2016/11/11 +08:53:59 gustafn Exp $)