Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • Saguaros Moderator
    #1069934

    Hi,

    So there must be something wrong with the code you changed. After you copy the ‘default.php’ file from com_contact, you can find this snippet of code which renders the Misc info:

    <?php if ($this->contact->misc && $tparams->get('show_misc')) : ?>
    <?php if ($presentation_style === 'sliders') : ?>
        <?php if (!$accordionStarted)
        {
            echo JHtml::_('bootstrap.startAccordion', 'slide-contact', array('active' => 'display-misc'));
            $accordionStarted = true;
        }
        ?>
        <?php echo JHtml::_('bootstrap.addSlide', 'slide-contact', JText::_('COM_CONTACT_OTHER_INFORMATION'), 'display-misc'); ?>
    <?php elseif ($presentation_style === 'tabs') : ?>
        <?php if (!$tabSetStarted)
        {
            echo JHtml::_('bootstrap.startTabSet', 'myTab', array('active' => 'display-misc'));
            $tabSetStarted = true;
        }
        ?>
        <?php echo JHtml::_('bootstrap.addTab', 'myTab', 'display-misc', JText::_('COM_CONTACT_OTHER_INFORMATION')); ?>
    <?php elseif ($presentation_style === 'plain') : ?>
        <?php echo '<h3>' . JText::_('COM_CONTACT_OTHER_INFORMATION') . '</h3>'; ?>
    <?php endif; ?>
    
    <div class="contact-miscinfo">
        <dl class="dl-horizontal">
            <dt>
                <span class="<?php echo $tparams->get('marker_class'); ?>">
                <?php echo $tparams->get('marker_misc'); ?>
                </span>
            </dt>
            <dd>
                <span class="contact-misc">
                    <?php echo $this->contact->misc; ?>
                </span>
            </dd>
        </dl>
    </div>

    Move this to underneath this line of code (approx line 99):

    <?php echo $this->loadTemplate('address'); ?>

    I also attach this file so you can see the changes.

    Regards


    1. default.php_-2.zip
    krumz Friend
    #1070061

    Hello and Thank You Saguaros,

    So this is the code I tried moving as well and when I copied what you gave me, I tried it again. Still nothing.

    Turns out I had the "contact" folder under com_content instead of com_contact. Lol. Now it works perfect.

    Thank you.

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  krumz 7 years ago.

The topic ‘Move Misc Info Contact Form from below the form to top of form’ is closed to new replies.