You are here

README.txt in Views Secondary Row 8

Same filename and directory in other branches
  1. 7 README.txt
Provides a way to split a views table row into two.
In the table style settings, select a "Secondary row" option.

So if a table looks like this:
    Name | Description | Edit link | Delete link
changing the secondary row option for "Edit link" to "Name"
and changing the secondary row option for the "Delete link" to "Description"
will render two rows:
    Name        | Description
    MyNode      | Sample description
    node/1/edit | node/1/delete

As you can see, columns selected to render in the "secondary row" aren't
rendered in the table header.

Most code is adapted from the following Views files:
  views file                                    vsr file                               vsr function
  ----------                                    --------                               ------------
- views\plugins\views_plugin_style_table.inc    views_secondary_row_plugin_style_table.inc
- views\theme\views-view-table.tpl.php          views-secondary-row-view-table.tpl.php
- views\theme\theme.inc                         views_secondary_row.module             template_preprocess_views_secondary_row_view_table()
- views\includes\admin.inc                      views_secondary_row.module             theme_views_secondary_row_style_plugin_table()

File

README.txt
View source
  1. Provides a way to split a views table row into two.
  2. In the table style settings, select a "Secondary row" option.
  3. So if a table looks like this:
  4. Name | Description | Edit link | Delete link
  5. changing the secondary row option for "Edit link" to "Name"
  6. and changing the secondary row option for the "Delete link" to "Description"
  7. will render two rows:
  8. Name | Description
  9. MyNode | Sample description
  10. node/1/edit | node/1/delete
  11. As you can see, columns selected to render in the "secondary row" aren't
  12. rendered in the table header.
  13. Most code is adapted from the following Views files:
  14. views file vsr file vsr function
  15. ---------- -------- ------------
  16. - views\plugins\views_plugin_style_table.inc views_secondary_row_plugin_style_table.inc
  17. - views\theme\views-view-table.tpl.php views-secondary-row-view-table.tpl.php
  18. - views\theme\theme.inc views_secondary_row.module template_preprocess_views_secondary_row_view_table()
  19. - views\includes\admin.inc views_secondary_row.module theme_views_secondary_row_style_plugin_table()