Core contact componente categorie list view ow enhache - Joomla! Forum - community, help and support
hello guys,
i need add filters in core contcact componente categorie list view. use overwrite have prepare file; c:\xampp\htdocs\joomla\templates\yoo_cloud\warp\systems\joomla\layouts\com_contact\featured
know looks how wish(see attachment). bit code, this;
now have problem set foreach query if form send. in code
anybody idea, how can use filers prepare output ?
sorry bad english, hope can fallow understand me
kind regards re3n
i need add filters in core contcact componente categorie list view. use overwrite have prepare file; c:\xampp\htdocs\joomla\templates\yoo_cloud\warp\systems\joomla\layouts\com_contact\featured
know looks how wish(see attachment). bit code, this;
code: select all
<?php include 'wahl.php'; ?>
<div class="suchfelder">
<form method="post" action="<?php echo $_server['php_self']; ?>">
<input type="text" name="search" value="suchen ?" onfocus="if(this.value == this.defaultvalue) this.value = '';" onblur = "if(!this.value) this.value = this.defaultvalue;" />
<input type='submit' value='ok'>
</form>
<?php
echo "<th>";
echo '<form method="post" action="'.$_server['php_self'].'">';
echo '<select style="width:100px" name="stadt">';
foreach($orte $key => $stadt)
{
echo '<option value="' . $key . '">' . $stadt . '</option>';
}
echo '</select>';
echo "</th>";
echo "<th>";
echo '<select style="width:100px" name="hause">';
foreach($bauwerk $baukey => $hausen)
{
echo '<option value="' . $baukey . '">' . $hausen . '</option>';
}
echo '</select>';
echo "</th>";
echo "<th>";
echo '<select style="width:100px" name="abteilunge">';
foreach($abteil $grukey => $gruppen)
{
echo '<option value="' . $grukey . '">' . $gruppen . '</option>';
}
echo '</select>';
echo "</th>";
echo "<th>";
echo '<select style="width:100px" name="abteilunge2">';
foreach($abteil2 $grukey2 => $gruppen2)
{
echo '<option value="' . $grukey2 . '">' . $gruppen2 . '</option>';
}
echo '</select>' .
'<input type="submit" value="ok"/></th>' .
'</form>';
echo "</th>";
echo "</td>";
echo "</table>";
?>
</div>
</br>
<!-- eigene suchfelder ende -->now have problem set foreach query if form send. in code
code: select all
<tbody>
<?php foreach($this->items $i => $item) : ?>
<tr class="<?php if ($i % 2 == 1) { echo 'even'; } else { echo 'odd'; } ?>">
<td class="item-title">
<a href="<?php echo jroute::_(contacthelperroute::getcontactroute($item->slug, $item->catid)); ?>"><?php echo $item->name; ?></a>
</td>
<?php if ($this->params->get('show_position_headings')) : ?>
<td class="item-position">
<?php echo $item->con_position; ?>
</td>
<?php endif; ?>
<?php if ($this->params->get('show_email_headings')) : ?>
<td class="item-email">
<?php echo $item->email_to; ?>
</td>
<?php endif; ?>
<?php if ($this->params->get('show_telephone_headings')) : ?>
<td class="item-phone">
<?php echo $item->telephone; ?>anybody idea, how can use filers prepare output ?
sorry bad english, hope can fallow understand me
kind regards re3n
why doing scratch , creating new view?
you can copy file "components\com_contact\views\category\tmpl\default.php" , modify according needs. called template on rides.
hope helps
you can copy file "components\com_contact\views\category\tmpl\default.php" , modify according needs. called template on rides.
hope helps
Comments
Post a Comment