Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • meditec Friend
    #883357

    Hello, in JA Mono template that I use JA Masthead extension is showing perfectly in pages where menu items are associatd with components (contnent blog layout, virtuemart etc). However, in menu pages where menu item is a single article, the module is not showing, even though I create the relevant entry from module backend. I can see a similar question in the forum but it seems that I have not the privileges to access the answer. Please help.

    Ninja Lead Moderator
    #884011

    Hi,

    JA Masthead module is loading the image_fulltext or the default image: /images/joomlart/hero/bg-1.jpg in Single article page and its not a problem from our product.

    If you want to show the image from JA Masthead module without image_fulltext from article. You will need to customize code, in this case and you can consider my tweak

    Open templates/ja_mono/html/com_content/article/default.php file

    find and change

    $masthead = JLayoutHelper::render('joomla.content.masthead', array('item' => $this->item, 'params' => $params, 'imageBg' => $imagesBg,
                                                                        'topInfo'=>$topInfo, 'icons' => $icons, 'view' => $this, 'event' => $this->item->event));
    $doc->setBuffer($masthead, array('type' => 'modules', 'name' => 'masthead', 'title' => ''));

    to

    /*$masthead = JLayoutHelper::render('joomla.content.masthead', array('item' => $this->item, 'params' => $params, 'imageBg' => $imagesBg,
                                                                        'topInfo'=>$topInfo, 'icons' => $icons, 'view' => $this, 'event' => $this->item->event));
    $doc->setBuffer($masthead, array('type' => 'modules', 'name' => 'masthead', 'title' => ''));*/

    Regards

    meditec Friend
    #884179

    That did it, thank you!

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

This topic contains 2 replies, has 2 voices, and was last updated by  meditec 8 years, 9 months ago.

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