Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • jenglandjae Friend
    #992859

    Version 2.6.1

    How do I assign a generic/default background image to all pages where none is assigned? There are parameters for default description and default title, but not for default image. I ccan’t expect all users to be able to configure this module when creating a new module.

    How do I use the parameters to assign a default to a category…I thought something like this might work:
    [Masshead option="com_content" view="category" id="13" title="E-SAFETY" background="images/banners/banner.jpg"] [/Masshead]
    but it doesn’t.

    Ninja Lead Moderator
    #993071

    Hi,

    By default, JA Masshead module only shows the title and description with all pages, if you want to show the background image maybe you need to add the page IDs need to appear with the background image.

    You can refer the guide here and find 4. Use extra parameters step, it will help you out

    If you could not solve this, you can provide me the URL of your site, admin login via private reply. I will check it for you

    Regards

    jenglandjae Friend
    #993187

    I know how to to add the page ID.

    But that means every article has to have an entry in the module.

    What about when users add a blog article from the front end?

    How do I get a default image showing?

    How can I use the parameters to assign an image to a category?

    Ninja Lead Moderator
    #993343

    Hi,

    This module does not support the background image by default. You can give me the URL of your site and admin login via private reply. I will try to help you to find the solution for you.

    Regards

    jenglandjae Friend
    #993374
    This reply has been marked as private.
    Ninja Lead Moderator
    #993643

    Hi,

    Actually this is the first time I’ve been asked for the default background image because when developing website, customers often have dynamic images for different pages.

    At this moment, you can try to use module class suffix to define the default background image for module:

    • Create the new CSS class and add the image by default for this class

    • Add it to Module Class Suffix of JA Masshead module

    Hope it helps

    Regards

    jenglandjae Friend
    #994856

    Hi – thanks .

    So I’ve been playing around a little more….actually turned out simpler than I was making it…

    [Masshead option="com_content" view="article" background="images/banners/banner.jpg"] [/Masshead]

    So now to add some complexity back in…
    Is there any way that the default title can be whatever the page title is?
    So I don’t have to define a new masshead entry for each page when all I am doing is adding the page title?

    Thanks,

    James

    Ninja Lead Moderator
    #994968

    Hi,

    You can add the title default into JA Masshead module with format

    [Masshead option="com_content" view="article" title="Title default" background="images/banners/banner.jpg"][/Masshead]

    Regards

    jenglandjae Friend
    #995086

    That just literally displays "Title default" on the page, not the actual page title.

    Ninja Lead Moderator
    #995429

    Hi,

    You can apply this way to add the title of JA Masshead module to title page of your site

    Open modules/mod_jamasshead/tmpl/default.php file and add the code below as my screenshot: http://prntscr.com/dky0ef

    $document= JFactory::getDocument();
    $document->setTitle($masshead['title']);

    Hope it helps

    Regards

    jenglandjae Friend
    #1009772

    Sorry for the long delay in responding.

    I have added this code as suggested in /modules/mod_jamasshead/tmpl/default.php

    The file now looks like:

    <?php
    /**

    defined(‘_JEXEC’) or die(‘Restricted access’);
    $document= JFactory::getDocument();
    $document->setTitle($masshead[‘title’]);
    ?>
    <div class="jamasshead<?php echo $params->get(‘moduleclass_sfx’,”)?>">
    <h3 class="jamasshead-title"><?php echo $masshead[‘title’]; ?>
    <div class="jamasshead-description"><?php echo $masshead[‘description’]; ?>

    However, this still only displays the default title as configured in the Masshead module. It does not show the page title itself.

    There has to be an easy way for this to show the page title automatically without having to create a new entry in the module every time.

    Saguaros Moderator
    #1009930

    Hi,

    Could you share the Super Admin account and FTP account so I will investigate further?

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

This topic contains 11 replies, has 3 voices, and was last updated by  Saguaros 7 years, 2 months ago.

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