Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 1598

Administration Joomla! 4.x • Re: Contact form miscellaneous information first

$
0
0
I'm trying to move Miscellaneous Information to the top of the built-in Contact Form in Joomla 5 using a template override. I've been following this guide: https://docs.joomla.org/J4.x:Template_Overrides

I've added a com_contact override. In default.php, I found the code below, but I'm not sure what needs to be changed. Could someone assist?

Thank you!

========

<?php if ($this->item->misc && $tparams->get('show_misc')) : ?>
<?php echo '<' . $htag2 . '>' . Text::_('COM_CONTACT_OTHER_INFORMATION') . '</' . $htag2 . '>'; ?>

<div class="com-contact__miscinfo contact-miscinfo">
<dl class="dl-horizontal">
<dt>
<?php if (!$this->params->get('marker_misc')) : ?>
<span class="icon-info-circle" aria-hidden="true"></span>
<span class="visually-hidden"><?php echo Text::_('COM_CONTACT_OTHER_INFORMATION'); ?></span>
<?php else : ?>
<span class="<?php echo $this->params->get('marker_class'); ?>">
<?php echo $this->params->get('marker_misc'); ?>
</span>
<?php endif; ?>
</dt>
<dd>
<span class="contact-misc">
<?php echo $this->item->misc; ?>
</span>

Statistics: Posted by Peace Freak — Thu May 02, 2024 11:21 pm



Viewing all articles
Browse latest Browse all 1598

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>