Index: openacs-4/packages/acs-core-docs/www/eng-standards-filenaming.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/eng-standards-filenaming.html,v diff -u -r1.48 -r1.49 --- openacs-4/packages/acs-core-docs/www/eng-standards-filenaming.html 27 Oct 2014 16:39:18 -0000 1.48 +++ openacs-4/packages/acs-core-docs/www/eng-standards-filenaming.html 7 Aug 2017 23:47:49 -0000 1.49 @@ -1,5 +1,5 @@ -ACS File Naming and Formatting Standards

ACS File Naming and Formatting Standards

By Michael Yoon and Aurelius Prochazka

+ACS File Naming and Formatting Standards

ACS File Naming and Formatting Standards

By Michael Yoon and Aurelius Prochazka

OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff.

@@ -10,7 +10,7 @@

  • displaying objects and their properties

  • manipulating or acting on objects in some way (by creating, editing, linking, etc)

  • 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

    @@ -26,7 +26,7 @@

Thus, the page to edit a bookmark is /bookmarks/edit.tcl.

  • 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 +one.extension

    For example, the page to view one bookmark is /bookmarks/one.tcl. Note that no verb is necessary for display-type files. @@ -55,7 +55,7 @@ ad-description-procs.tcl

  • URLs

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

    @@ -121,7 +121,7 @@

    Salient features of ad_page_contract:

    Tcl Library Files

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

    ($Id$)
    View comments on this page at openacs.org
    +

    ($Id$)