test
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • asnowdon Friend
    #184316

    I am using JA_Mero and it has made changes to the com_contact contact default view. How can I override this?

    Usually, I would override Joomla’s template like this:

    Original: /components/com_contact/views/contact/tmpl/default.php
    Override: /templates/ja_mero/html/com_contact/contact/default.php

    However, there is a file located here:
    /plugins/system/jat3v3/t3v3base/html/contact/default.php

    This override in the t3v3base seems to be overriding my override. Any ideas why this is, or how I can get around it?

    Thanks.

    Stork11 Friend
    #481001

    Hello asnowdon,

    It’s an issue of T3v3. It’ll be fixed in next version of T3v3. For temporary fix, please open “/plugins/system/jat3v3/includes/joomla30/viewlegacy.php” file (for Joomla 3.0) or “/plugins/system/jat3v3/includes/joomla25/view.php” file (for Joomla 2.5), then search “T3” keyword in its code. After that, move “$this->_addPath(‘template’, T3V3_PATH.’/html/’ . $component . ‘/’ . $this->getName());” line to above “$this->_addPath(‘template’, T3V3_PATH.’/html/’ . $component . ‘/’ . $this->getName());” line.

    New code should be:
    [PHP]
    if (isset($app))
    {
    //if it is T3 template, update search path for template
    $this->_addPath(‘template’, T3V3_PATH.’/html/’ . $component . ‘/’ . $this->getName());

    $component = preg_replace(‘/[^A-Z0-9_.-]/i’, ”, $component);
    $fallback = JPATH_THEMES . ‘/’ . $app->getTemplate() . ‘/html/’ . $component . ‘/’ . $this->getName();
    $this->_addPath(‘template’, $fallback);
    }
    [/PHP]

    Regards.

    asnowdon Friend
    #481039

    This worked, thank you very much.

    stouvoli Friend
    #482753

    Hello, I have the same issue with ja_elastica. Can you please help ? What I add in htmlcom_searchviews is not showing.

    stouvoli Friend
    #482828

    My mistake it works. Overriding folder was not correct.
    😀

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

This topic contains 5 replies, has 3 voices, and was last updated by  stouvoli 11 years, 10 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum