Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • dominik_1 Friend
    #725188

    Hello,

    how Can I change the Masthead Image in article view? I would the article “intro image” in masthead and not the “Full Article Image”

    I try to change this in ja_mono/html/layouts/joomla/content/masthead.php:

    defined('_JEXEC') or die;
    $params = $displayData['params'];
    $item = $displayData['item'];
    $topInfo = $displayData['topInfo'];
    $icons = $displayData['icons'];
    $view = $displayData['view'];
    $imageBg = $displayData['imageBg'];
    $event = $displayData['event'];
    ?>
    <div class="jamasthead blend-bg" style="background-image:url(<?php echo $imageBg ?>);">

    to this:


    defined('_JEXEC') or die;
    $params = $displayData['params'];
    $item = $displayData['item'];
    $topInfo = $displayData['topInfo'];
    $icons = $displayData['icons'];
    $view = $displayData['view'];
    $imageBg = json_decode($this->item->images);
    $event = $displayData['event'];
    ?>
    <div class="jamasthead blend-bg" style="background-image:url(<?php echo $imageBg ?>);">

    But it not found, because it doesn’t load the correct image_intro url (it’s a blank url). Can you help me please?

    dominik_1 Friend
    #725254

    I solved this. The file masthead.php is ok in original version.

    I change in templates/ja_mono/html/com_content/article/default.php:

    $imagesBg = $images->image_fulltext;

    in:

    $imagesBg = $images->image_intro;

    Now I have the masthead image in article view from image intro text.

    dominik_1 Friend
    #754971

    I solved this. The file masthead.php is ok in original version.

    I changed in templates/ja_mono/html/com_content/article/default.php:

    $imagesBg = $images->image_fulltext;

    in:

    $imagesBg = $images->image_intro;

    Now I have the masthead image in article view from image intro text.

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

This topic contains 3 replies, has 1 voice, and was last updated by  dominik_1 8 years, 12 months ago.

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