The module uses tables in two places: a) as a wrapper to arrange content items – ‘articles’ as they are now called in Joomla 1.5 – in columns, and b) in the template file to format the articles.
As for a) I added a parameter “Output mode” with the values “table”,”div” and “raw”.
- table – just works like before
- div – wraps the articles into div tags. The divs around “leading” articles have the class “mod_placehere_leading”, following articles the class, you guess it, “mod_placehere_following”. No CSS is delivered with the module, so you can/have to style the divs on your own (for example set a width and use a float on “following” articles to get a column effect for the articles)
- raw just prints the content items on the page, without any additional markup
To get b) rid of the remaining tables you will have to fiddle with the template file. Unlike in the module for 1.0.x the module does not use the content componentes template but has its own template file in modules/mod_placehere/tmpl. Change the HTML but don’t mess with the PHP Code. In time I will attempt to provide a tableless template.
Tested with 1.5 RC3 on PHP 4.4 / Windows XP Home. Available at the download page .
Comments are closed.