annotate sites/all/modules/views/help/style-grid.html @ 2:b74b41bb73f0

-- Google analytics module
author danieleb <danielebarchiesi@me.com>
date Thu, 22 Aug 2013 17:22:54 +0100
parents ff03f76ab3fe
children
rev   line source
danielebarchiesi@0 1 The <strong>grid</strong> style will display each row of your view within a grid. You may customize the <strong>number of columns</strong>, though it defaults to 4. A grid looks like this:
danielebarchiesi@0 2
danielebarchiesi@0 3 <table width="100%">
danielebarchiesi@0 4 <tr><td>row 1</td><td>row 2</td><td>row 3</td><td>row 4</td></tr>
danielebarchiesi@0 5 <tr><td>row 5</td><td>row 6</td><td>row 7</td><td>row 8</td></tr>
danielebarchiesi@0 6 <tr><td>row 9</td><td>row 10</td><td>row 11</td><td>row 12</td></tr>
danielebarchiesi@0 7 <tr><td>row 13</td><td>row 14</td><td>row 15</td><td>row 16</td></tr>
danielebarchiesi@0 8 </table>
danielebarchiesi@0 9
danielebarchiesi@0 10 The above uses the <strong>horizontal</strong> alignment, where rows are added into the grid from left to right.
danielebarchiesi@0 11
danielebarchiesi@0 12 With a <strong>vertical</strong> alignment, rows will be placed from top to bottom, like this (your <strong>row</strong> results will appear as columns):
danielebarchiesi@0 13 <table width="100%">
danielebarchiesi@0 14 <tr><td>row 1</td><td>row 5</td><td>row 9</td><td>row 13</td></tr>
danielebarchiesi@0 15 <tr><td>row 2</td><td>row 6</td><td>row 10</td><td>row 14</td></tr>
danielebarchiesi@0 16 <tr><td>row 3</td><td>row 7</td><td>row 11</td><td>row 15</td></tr>
danielebarchiesi@0 17 <tr><td>row 4</td><td>row 8</td><td>row 12</td><td>row 16</td></tr>
danielebarchiesi@0 18 </table>
danielebarchiesi@0 19
danielebarchiesi@0 20 You can also choose to <strong>group a field</strong> from the Fields Section. This grouping field will be displayed as a header, and all rows will be displayed beneath it.
danielebarchiesi@0 21
danielebarchiesi@0 22 This style uses a <a href="topic:views/style-row">row style</a> to determine what each row will look like.