Diego Quirós
Diego Quirós

Reputation: 977

Joomla: Need accordion to be set as expanded

I need the accordion "Contact Form" in Joomla to be set as expanded by default. To do this I m trying to override files ../components/com_contact/tmpl/default.php and default_form.php but I dont find what needs to be change to do this.

Seeing the code in the Chrome developer Tools I think I find that this line

<div class="accordion-body collapse" id="display-form">

shoul be set to:

<div class="accordion-body collapse in" id="display-form">

But I dont find where in the phps file is this generate?

PD: I think the line is generate here, but still dont know what needs to be change:

<?php if ($this->params->get('presentation_style') == 'sliders') : ?>
            <?php echo JHtml::_('bootstrap.addSlide', 'slide-contact', JText::_('COM_CONTACT_EMAIL_FORM'), 'display-form'); ?>
        <?php endif; ?>

Thanks in advance!!!

Upvotes: 0

Views: 283

Answers (1)

arinh
arinh

Reputation: 206

Try using this snippet after JText or the 'display-form'.

array('class'=>'in')

If it doesn't work then check out the documentation online and you should be able to find your solution.

http://api.joomla.org/cms-3/classes/JHtmlBootstrap.html

Upvotes: 1

Related Questions