Index: openacs-4/packages/acs-templating/www/doc/exercise/ats-for-designers.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/doc/exercise/ats-for-designers.adp,v diff -u -r1.7.2.5 -r1.7.2.6 --- openacs-4/packages/acs-templating/www/doc/exercise/ats-for-designers.adp 13 Jul 2023 12:48:33 -0000 1.7.2.5 +++ openacs-4/packages/acs-templating/www/doc/exercise/ats-for-designers.adp 2 Sep 2024 09:40:25 -0000 1.7.2.6 @@ -2,6 +2,10 @@ {/doc/acs-templating/ {ACS Templating}} {The ACS Templating System for Web Designers} The ACS Templating System for Web Designers +

The ACS Templating System for Web Designers

Templating System : Templating @@ -73,7 +77,8 @@ appearing once in the .adp file, are cycled repeatedly to show multiple sets of information when displayed in list-and-var-sample.acs; example: -
    <multiple name="your_multirow">
+

+    <multiple name="your_multirow">
     <tr><td>\@your_multirow.first_names\@ \@your_multirow.last_name\@ </td> </tr>
     </multiple>
     
@@ -261,26 +266,26 @@ and <else> tags to your ATS toolbelt, it's time to put those tools to good use in formatting multirow data. First, read the docs to learn about the -automatcally generated \@your_multirow.rownum\@ -column, the \@your_multirow:rowcount\@ onevalue -which contains the total number of rows contained in your multirow, -and the <multiple> startrow and -maxrows attributes. Possible point of confusion: the -variable \@your_multirow:rowcount\@ is a -onevalue and not a column of the multirow -your_multirow, so it need not be used within -<multiple> tags and in many cases should not be used within -<multiple> tags. Why is this? (Take a look at how -\@address:rowcount\@ is used.) Now make the following -improvements to the address book listing you found in -form-sample.acs:

+automatically generated +\@your_multirow.rownum\@ column, the +\@your_multirow:rowcount\@ onevalue which +contains the total number of rows contained in your multirow, and +the <multiple> startrow and maxrows +attributes. Possible point of confusion: the variable +\@your_multirow:rowcount\@ is a onevalue and +not a column of the multirow your_multirow, +so it need not be used within <multiple> tags and in many +cases should not be used within <multiple> tags. Why is this? +(Take a look at how \@address:rowcount\@ is used.) Now +make the following improvements to the address book listing you +found in form-sample.acs:

  • stripe the table with banded rows of alternating grey and white, or some other color scheme of your preference
  • use the startrow attribute so that the address book listing begins at a rownumber determined by the Tcl file code (check the .dat page)
  • add navigation links to the address book so that users can move forward or back between row listings, or jump to the beginning or -end of their address book
    • +end of their address book
      • each link should set the url variable that determines the first row of the set to be displayed
      • the links should only appear when necessary, that is, a link pointing towards the next set of rows should not appear if the user @@ -289,5 +294,5 @@

      shuynh\@arsdigita.com
      - -Last modified: Fri Nov 17 10:14:44 EST 2000 \ No newline at end of file +Last modified: Sun Sep 1 14:32:43 CEST 2024 + \ No newline at end of file