-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Kornel Lesiński wrote:
> On 20-08-2008 at 15:25:50 romtek <[EMAIL PROTECTED]> wrote:
> 
>> The manual has been changed recently, but it still doesn't describe some
>> things added recently. I've checked several things that I think would be
>> helpful for new PHPTAL users to know , and none of them are in the
>> manual:
>> - nothing or NULL as last alternative in tal:attributes
>> - support for grouping first and last properties
>> - configuration can be changed without using constants
> 
> Thanks for reminder. I've improved the documentation.
> 
> If you (or someone else) would like to help with the documentation, the
> source file is in:
> https://svn.motion-twin.com/phptal/trunk/doc/en/book.xml
> 

Ok, here goes :)

If you want it as an attachment, just holler out.

Index: book.xml
===================================================================
- --- book.xml  (revision 372)
+++ book.xml    (working copy)
@@ -787,7 +787,7 @@
         </para>

         <programlisting><![CDATA[<tr tal:repeat="ranking playerRankings"
- -    tal:attribute="class php: repeat.ranking.odd ? 'odd' : false">
+    tal:attributes="class php: repeat.ranking.odd ? 'odd' : false">
     ...
 </tr>
 ]]></programlisting>
@@ -810,6 +810,17 @@
         integration / custom modifiers) which would be used as follows:
         </para>

+        <para>
+        Please note that the "selected" and "checked" attributes are
handled special in TAL. Therefore you can do:
+        </para>
+        <programlisting><![CDATA[<option tal:repeat="item options"
+    tal:attributes="selected php: item/default">
+    ...
+</tr>
+        ]]></programlisting>
+        <para>
+        Remember that XHTML is case-sensitive, so SELECTED attribute is
an error in XHTML. Use selected.
+
         <programlisting><![CDATA[<tr tal:repeat="ranking playerRankings"
     tal:attributes="class css-odd:repeat/ranking/odd">
   ...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIrUrWYVRKCnSvzfIRAmgLAJwIwv9Ly1WzwXd9caq70djt1SCKYACdEuLH
8CzS7JLfOMGR8Jl0m9aoaqA=
=yzky
-----END PGP SIGNATURE-----

_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal

Reply via email to