<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 81: caption for data:table?</title><link href="https://sourceforge.net/p/wact/feature-requests/81/" rel="alternate"/><link href="https://sourceforge.net/p/wact/feature-requests/81/feed.atom" rel="self"/><id>https://sourceforge.net/p/wact/feature-requests/81/</id><updated>2004-07-31T03:50:54Z</updated><subtitle>Recent changes to 81: caption for data:table?</subtitle><entry><title>caption for data:table?</title><link href="https://sourceforge.net/p/wact/feature-requests/81/" rel="alternate"/><published>2004-07-31T03:50:54Z</published><updated>2004-07-31T03:50:54Z</updated><author><name>Michael van Dam</name><uri>https://sourceforge.net/u/mvandam/</uri></author><id>https://sourceforge.neta5ef12fc546643606e7f4a3d7cd535ed994dfd3b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I've recently been playing around with the &amp;lt;data:table&amp;gt; and related tags.  I'm sure I've just scratched the surface as to all the capabilities, but so far am very impressed!&lt;/p&gt;
&lt;p&gt;One thing I wasn't able to find is a way to place a &amp;lt;caption&amp;gt; tag inside a table.  Is there any way to do so that I just didn't see, or are there any plans for this in the future?&lt;/p&gt;
&lt;p&gt;As I was looking for more info, I found a bunch of other tags I didn't know about - they seem quite useful for controlling table design but I wasn't sure how you would go about using them with data:table.&lt;/p&gt;
&lt;p&gt;&amp;lt;col&amp;gt;, &amp;lt;colgroup&amp;gt; - for specifying column widths, alignment, span&lt;/p&gt;
&lt;p&gt;&amp;lt;thead&amp;gt;, &amp;lt;tbody&amp;gt;, &amp;lt;tfoot&amp;gt; - for delimiting which rows are the header/footer portion of the table - apparently gives special rendering/behaviour in some browsers, though not well supported&lt;/p&gt;
&lt;p&gt;I wonder if a really easy way to "support" these would just be to take all non-&amp;lt;data:&amp;gt;-content within the &amp;lt;data:table&amp;gt; tag and place it just inside the opening &amp;lt;table&amp;gt; tag in the compiled template?&lt;/p&gt;
&lt;p&gt;&amp;lt;data:table&amp;gt;&lt;br /&gt;
&amp;lt;!-- Put the next three rows immediately&lt;br /&gt;
inside &amp;lt;table&amp;gt; tag in compiled template --&amp;gt;&lt;br /&gt;
&amp;lt;caption&amp;gt;Some title&amp;lt;/caption&amp;gt;&lt;br /&gt;
&amp;lt;col width="10%"&amp;gt;&lt;br /&gt;
&amp;lt;col width="80%"&amp;gt;&lt;br /&gt;
&amp;lt;data:column name="title"&amp;gt;&lt;br /&gt;
&amp;lt;data:header&amp;gt;Title&amp;lt;/data:header&amp;gt;&lt;br /&gt;
&amp;lt;data:cell&amp;gt;{$title}&amp;lt;/data:cell&amp;gt;&lt;br /&gt;
&amp;lt;/data:column&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/data:table&amp;gt;&lt;/p&gt;
&lt;p&gt;I'm not sure this helps with thead/tbody/tfoot though.&lt;/p&gt;
&lt;p&gt;Anyways, love the tag so far - the syntax seems quite intuitive and the "autogen" feature has been a huge time-saver for me!&lt;/p&gt;
&lt;p&gt;----&lt;/p&gt;
&lt;p&gt;Some references just in case the above mentioned tags are not familiar (as they weren't for me):&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.w3schools.com/tags/tag_caption.asp" rel="nofollow"&gt;http://www.w3schools.com/tags/tag_caption.asp&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://www.w3schools.com/tags/tag_col.asp" rel="nofollow"&gt;http://www.w3schools.com/tags/tag_col.asp&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://www.w3schools.com/tags/tag_colgroup.asp" rel="nofollow"&gt;http://www.w3schools.com/tags/tag_colgroup.asp&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://www.w3schools.com/tags/tag_thead.asp" rel="nofollow"&gt;http://www.w3schools.com/tags/tag_thead.asp&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://www.w3schools.com/tags/tag_tbody.asp" rel="nofollow"&gt;http://www.w3schools.com/tags/tag_tbody.asp&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://www.w3schools.com/tags/tag_tfoot.asp" rel="nofollow"&gt;http://www.w3schools.com/tags/tag_tfoot.asp&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>