Forums / Setup & design / article lists in table format?

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