hi all,
I was looking at this rt and, with a little hack, found a way to do a all css layout. The last arg that can be passed to the rt id horizontal or vertical table layout. Well, if we ad an option for div and adjust the code in the rt file, then we get pure div based layout.
here is what I changed:
at line 489 change to this:
Code: Select all
if ($c_tableorientation == 'horz')
{
$listing .= "\n<!-- START TEASER TABLE HORIZONTAL -->\n
<table id=\"teaserTable\">";
}
else if ($c_tableorientation == 'div')
{
$listing .="\n<!-- START TEASER DIVS -->\n";
}
else
{
$listing .= "\n<!-- START TEASER TABLE VERTICAL -->\n
<table id=\"teaserTable\">
<tr>
<td id=\"teaserTableLeftCell\" valign=\"top\" width=\"$colwidth%\">";
}
and then do your tmpl file with div layouts and do your css in your default css file.
If you want to wrap the whole tag in a seperate div for absolute positioning then just put <div>{RT}</div> in the content part...
here is an example of a template file I wrote (really simple):
Code: Select all
<div class="expose">
<div class="exposeTitle">{TITLE}</div>
<div class="exposeImage"><a href="{ARTICLELINK}">{IMAGE}</a></div>
<div class="exposeSummary">{SUMMARY}</div>
<br/>
<div class="exposeLink"><a href="{ARTICLELINK}">mehr</a></div>
</div>
and the css that goes with it:
Code: Select all
.expose
{
float: left;
width: 170px;
height: 250px;
background-color: #efefef;
margin: 2px;
padding: 10px;
}
.expose .exposeTitle
{
color:#333333;
font-weight: bold;
font-size: 16px;
}
.expose img
{
border: 2px solid grey;
margin-bottom: 3px;
margin-top: 5px;
}
.exposeLink a
{
color: grey;
}
this ends up giving me a 3 column list of articles with image. great for catalogs, etc...
cheers, doc