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 -N -r1.2.2.4 -r1.2.2.5 --- openacs-4/packages/acs-templating/www/doc/exercise/ats-for-designers.adp 22 Jun 2016 07:48:44 -0000 1.2.2.4 +++ openacs-4/packages/acs-templating/www/doc/exercise/ats-for-designers.adp 5 Jul 2016 12:14:22 -0000 1.2.2.5 @@ -3,6 +3,9 @@ The ACS Templating System for Web Designers

The ACS Templating System for Web Designers

+ +Templating System : Templating +Exercise

Reading

Now that the secrets of <master> and <slave> have -been revealed, it's time to put a little of your newfound knowledge -to use. Open up form-sample.adp, a standalone, +been revealed, it's time to put a little of your newfound +knowledge to use. Open up form-sample.adp, a standalone, independently formatted html page, and enslave it to the mastery of of your personal web page. It would also be nice if you were to label the newly inserted form with some slave-specific title.

@@ -244,30 +249,31 @@

Practice using <formwidget> and <formgroup> by adding the missing entry fields manually into the form. Make free use of any HTML properties to streamline the form to your liking. -If you can't remember what those fields were you can replace the -closing </formtemplate> tag to recover the default format, or -make use of the .dat datasource page to view your developer's -description and comments about the form.

-

Also, try customizing your form's error response/correction -request text. You'll need to use the <formerror> tag, an example of +If you can't remember what those fields were you can replace +the closing </formtemplate> tag to recover the default +format, or make use of the .dat datasource page to view your +developer's description and comments about the form.

+

Also, try customizing your form's error response/correction +request text. You'll need to use the <formerror> tag, an example of which can be found under the gender formwidget.

Exercise Five: more fun with multirows

-

Now that you've confidently added the conditional <if> 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 +

Now that you've confidently added the conditional <if> +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:

+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: