article lists in table format?

Author Message

Andre Felipe Machado

Saturday 25 June 2005 4:47:00 am

Hello,
I would like to create a folder containing article lists in table format, similar to this forum layout.
Each row containing columns with article title, intro and read more links.
I read the full/folder.tpl, full/forum.tpl, line/article.tpl , stylesheets/classes.css , stylesheets/t2.css

http://ez.no/ez_publish/documentation/reference/template_functions/gui/node_view_gui
http://ez.no/ez_publish/documentation/reference/template_functions/program_flow/section
http://ez.no/ez_publish/documentation/customization/custom_design/override_templates
http://ez.no/community/articles/build_table_less_css_layouts_with_ez_publish
I "guess" that will have to modify the full/article.tpl at this part:

           <div class="content-view-children">
                {section var=child loop=$list_items sequence=array(bglight,bgdark)}
                    {node_view_gui view=line content_node=$child}
                {/section}
            </div>


to incorporate a new modified line/article.tpl, like the full/forum.tpl did.
Instead of incorporating the template, is there a way to still use node_view_gui (maybe creating a new view method "table") to render a table with columns and alternating background colors rows
As far I can read, the default templates did not use the sequence=array(bglight, bgdark).
Any suggestions or url to read?
Thanks.
Andre Felipe

---
A Debian user never dies. Issues a last command:
shutdown -h now

http://www.techforce.com.br

Andre Felipe Machado

Saturday 25 June 2005 5:49:30 am

Hello,
I guess the more elegant way could be using table-less css.
Maybe, it could be done parsing sequence as argument to the section calling node_view_gui.
Then, using a new method view=table, it can receive the sequence argument and pass it to the new method ,standard/templates/node/view/table.tpl template override, created for this, using only table-less css (modified t2.css and core.css)
How to accomplish this?
Any ideas or url to read?
Thanks.
Andre Felipe

---
A Debian user never dies. Issues a last command:
shutdown -h now

http://www.techforce.com.br

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 04:43:07
Script start
Timing: Jan 19 2025 04:43:07
Module start 'layout'
Timing: Jan 19 2025 04:43:07
Module start 'content'
Timing: Jan 19 2025 04:43:07
Module end 'content'
Timing: Jan 19 2025 04:43:07
Script end

Main resources:

Total runtime0.0132 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 589.1563152.6250
Module start 'layout' 0.00460.0025 741.781339.4453
Module start 'content' 0.00710.0044 781.226689.4453
Module end 'content' 0.01150.0017 870.671934.3047
Script end 0.0132  904.9766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002216.4621140.0002
Check MTime0.00107.9166140.0001
Mysql Total
Database connection0.00064.806210.0006
Mysqli_queries0.002115.730530.0007
Looping result0.00000.255910.0000
Template Total0.001410.710.0014
Template load0.00075.539610.0007
Template processing0.00075.123410.0007
Override
Cache load0.00053.847510.0005
General
dbfile0.00021.787780.0000
String conversion0.00000.046940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs