cchiacchierini
Member
In an effort to have city, state and zip appear on the same line in the details view of my list, I added the folowing to default_group.php in the contacts_custom template.
The problem I am running into, of course, is that even though they are in the same row, the state and zip are in their own columns, so the spacing does not work. I was able to accomplish something like this in the div list view template by doing the following in the default_row.php file:
I have tried a bunch of different combinations, but I can not get it to work. I also tried using css, but I could not get that to work either.
Any ideas would be greatly appreciated.
URL: http://ciderweek.ohbusyweaver01.com/index.php/home (click on any of the details links to open the lightbox)
Fabrik: 3.0.6
Joomla: 2.5.6
Code:
<table>
<tr>
<td>
<?php
$this->element = $this->elements['establishmentname'];
echo $this->loadTemplate('element');
?>
</td>
<td>
</td>
<td>
</td>
<td rowspan="8">
<?php
$this->element = $this->elements['establishmentmap'];
echo $this->loadTemplate('element');
?>
</td>
</tr>
<tr>
<td>
<?php
$this->element = $this->elements['establishmentaddressstreet'];
echo $this->loadTemplate('element');
?>
</td>
</tr>
<tr>
<td>
<?php
$this->element = $this->elements['establishmentaddresscity'];
echo $this->loadTemplate('element');
?>
</td>
<td>
<?php
$this->element = $this->elements['establishmentaddressstate'];
echo $this->loadTemplate('element');
?>
</td>
<td>
<?php
$this->element = $this->elements['establishmentaddresszip'];
echo $this->loadTemplate('element');
?>
</td>
</tr>
<tr>
<td>
<?php
$this->element = $this->elements['establishmentphone'];
echo $this->loadTemplate('element');
?>
</td>
</tr>
<tr>
<td>
<?php
$this->element = $this->elements['establishmentwebsite'];
echo $this->loadTemplate('element');
?>
</td>
</tr>
<tr>
<td>
<?php
$this->element = $this->elements['establishmenthours'];
echo $this->loadTemplate('element');
?>
</td>
</tr>
<tr>
<td>
<?php
$this->element = $this->elements['establishmentdescription'];
echo $this->loadTemplate('element');
?>
</td>
</tr>
</table>
Code:
<tr>
<td>
<div <?php echo @$this->cellClass['cidermakers___city']; ?>
<?php echo @$this->cellClass['cidermakers___state']; ?>>
<?php echo @$this->_row->data->cidermakers___city;?>,
<?php echo @$this->_row->data->cidermakers___state;?>
</div>
</td>
</tr>
I have tried a bunch of different combinations, but I can not get it to work. I also tried using css, but I could not get that to work either.
Any ideas would be greatly appreciated.
URL: http://ciderweek.ohbusyweaver01.com/index.php/home (click on any of the details links to open the lightbox)
Fabrik: 3.0.6
Joomla: 2.5.6