Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • olivercham Friend
    #172974

    Dear JoomlArt staff and helpers,

    I have this website i am developing with JA Event 1.7 template with both language FR and EN // language switcher operationnal
    I would like just the main banner picture on top to change according to the language so i have 1 banner .jpg in French and 1 banner .jpg in English. Now it is the banner with .jpg in French that is installed.

    However i don’t know where to program this change from the Administrator board and where to put my .jpg banner picture in English ?

    Can you help me please ?

    Thanks

    pavit Moderator
    #434601

    Hi

    If you have created a page override you can publish your banner module only in the pages of your English menu

    olivercham Friend
    #434637

    Dear Pavit,

    Thanks for your reply but i don’t understand what is page override and someone has touched my website from the Backdoor because now the banner has disappeared and is only visible on the main-page but not anymore on the other pages so could you please put back the banner where it was and tell me what is the solution to get my banner image in both language switch with the language ?

    Thanks for your support.

    pavit Moderator
    #434643

    Hi olivercham

    I have published both Ja_Slideshow modules in the respective languages menu

    through Menu assignment — > Module Assignment Only in the page selected —> Main menu FR flag all pages

    The same for the slideshow in english language

    Regards

    olivercham Friend
    #434650

    Dear Pavit,

    Thank you but my issue here is about the top banner image (with the logo).

    Question : can i create 2 similar templates (copy Ja Event template) and have one with the top banner in French and one with the top banner in English then assign all EN pages to the English template and all FR pages to the French template ?

    If yes, then how to have 2 template.Css file so that i can modify the code :

    ============
    /* Logo Image —*/
    h1.logo { width: 1000px; height: 170px; }

    h1.logo a {
    background: url(../images/logobanner-fr.jpg) no-repeat left;
    display: block;
    width: 1000px;
    height: 170px
    }
    ============

    and another one with “logobanner-en.jpg”

    Thanks

    pavit Moderator
    #434663

    Hi

    I think you can solve in this way

    1) Edit your templatesja_eventsblocksheader.php

    Now you have

    [PHP]<?php
    $app = & JFactory::getApplication();
    $siteName = $app->getCfg(‘sitename’);
    if ($this->getParam(‘logoType’, ‘image’)==’image’): ?>
    <h1 class=”logo”>
    <a href=”index.php” title=”<?php echo $siteName; ?>”><span><?php echo $siteName; ?></span></a>
    </h1>
    <?php else:
    $logoText = (trim($this->getParam(‘logoText’))==”) ? $siteName : JText::_(trim($this->getParam(‘logoText’)));
    $sloganText = JText::_(trim($this->getParam(‘sloganText’))); ?>
    <div class=”logo-text”>
    <h1><a href=”index.php” title=”<?php echo $siteName; ?>”><span><?php echo $logoText; ?></span></a></h1>
    <p class=”site-slogan”><?php echo $sloganText;?></p>
    </div>
    <?php endif; ?>

    <?php if($this->countModules(‘topheader’)) : ?>
    <div id=”ja-topheader”>
    <jdoc:include type=”modules” name=”topheader” />
    </div>
    <?php endif; ?>[/PHP]

    2) Change it to

    [PHP]
    <?php if($this->countModules(‘logolang’)) : ?>
    <div id=”ja-logolang”>
    <jdoc:include type=”modules” name=”logolang” />
    </div>
    <?php endif; ?>

    <?php if($this->countModules(‘topheader’)) : ?>
    <div id=”ja-topheader”>
    <jdoc:include type=”modules” name=”topheader” />
    </div>
    <?php endif; ?>[/PHP]

    3) In your TemplateDetails.xml you can add the <position>logolang</position>

    4) Create a class in the Template.css #ja-logolang with all your preferred settings like padding to adapt at the new position

    5) Create 2 new custom-html modules with your logos image 1 for English 1 for French

    6) Assign the custom-html module logofrench to the MainMenu Fr pages

    7) Assign the custom-html module logoenglish to the MainMenu English pages.

    TAKE A BACKUP OF THE header.php before you start to modify it

    amandasmith Friend
    #434766

    <em>@pavit 295810 wrote:</em><blockquote>Hi

    I think you can solve in this way

    1) Edit your templatesja_eventsblocksheader.php

    Now you have

    [PHP]<?php
    $app = & JFactory::getApplication();
    $siteName = $app->getCfg(‘sitename’);
    if ($this->getParam(‘logoType’, ‘image’)==’image’): ?>
    <h1 class=”logo”>
    <a href=”index.php” title=”<?php echo $siteName; ?>”><span><?php echo $siteName; ?></span></a>
    </h1>
    <?php else:
    $logoText = (trim($this->getParam(‘logoText’))==”) ? $siteName : JText::_(trim($this->getParam(‘logoText’)));
    $sloganText = JText::_(trim($this->getParam(‘sloganText’))); ?>
    <div class=”logo-text”>
    <h1><a href=”index.php” title=”<?php echo $siteName; ?>”><span><?php echo $logoText; ?></span></a></h1>
    <p class=”site-slogan”><?php echo $sloganText;?></p>
    </div>
    <?php endif; ?>

    <?php if($this->countModules(‘topheader’)) : ?>
    <div id=”ja-topheader”>
    <jdoc:include type=”modules” name=”topheader” />
    </div>
    <?php endif; ?>[/PHP]

    2) Change it to

    [PHP]
    <?php if($this->countModules(‘logolang’)) : ?>
    <div id=”ja-logolang”>
    <jdoc:include type=”modules” name=”logolang” />
    </div>
    <?php endif; ?>

    <?php if($this->countModules(‘topheader’)) : ?>
    <div id=”ja-topheader”>
    <jdoc:include type=”modules” name=”topheader” />
    </div>
    <?php endif; ?>[/PHP]

    3) In your TemplateDetails.xml you can add the <position>logolang</position>

    4) Create a class in the Template.css #ja-logolang with all your preferred settings like padding to adapt at the new position

    5) Create 2 new custom-html modules with your logos image 1 for English 1 for French

    6) Assign the custom-html module logofrench to the MainMenu Fr pages

    7) Assign the custom-html module logoenglish to the MainMenu English pages.

    TAKE A BACKUP OF THE header.php before you start to modify it</blockquote>

    Thanks for information

    olivercham Friend
    #434774

    AMAZING !!

    It Works perfectly well !

    Thanks for your great support Pavit.

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

This topic contains 8 replies, has 3 voices, and was last updated by  olivercham 12 years, 10 months ago.

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