-
AuthorPosts
-
January 15, 2010 at 4:25 pm #147688
I have: A logo + slogan as one picture. There are five languages on the website, therefore, I have five pictures.
I need: To have each logo picture display in the correct language.
I think: The best way to do this is to create a new module position in JA Teline iii and then use Joomfish to translate the module and put the specific language picture.
How can this be done?
micrantha Friendmicrantha
- Join date:
- May 2007
- Posts:
- 465
- Downloads:
- 0
- Uploads:
- 6
- Thanks:
- 6
- Thanked:
- 158 times in 148 posts
January 15, 2010 at 4:47 pm #329395micrantha, thanks for the quick reply. This looks useful, however, I am not good with CSS.
I would like the new module to be the whole RED area which is shown in the picture I attached.
Looking at other posts, I also have to add the position and style it which I do not know at moment.
My first question to you is:
What does this code represent?
<?php
$siteName = $this->sitename();
if ($this->getParam('logoType')=='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'))=='') ? $config->sitename : $this->getParam('logoText');
$sloganText = (trim($this->getParam('sloganText'))=='') ? JText::_('') : $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; ?>I ask the above question because in your reply it states to add the following code after the code above and I am wondering whether this will leave the logo in same place but also add a new module which will overwrite or conflict with logo:
<!-- new position-->
<?php if($this->countModules('newposition')) : ?>
<div id="newposition">
<jdoc:include type="modules" name="newposition" style="xhtml" />
</div>
<?php endif; ?>Can I send you the homepage link?
January 15, 2010 at 5:01 pm #329396I deleted the logo code and inserted the new module and added the module position in the templatedetails.xml
When I went to create a new module, I got the following error
XML Parsing Error at 74:31. Error 4: not well-formed (invalid token)
micrantha Friendmicrantha
- Join date:
- May 2007
- Posts:
- 465
- Downloads:
- 0
- Uploads:
- 6
- Thanks:
- 6
- Thanked:
- 158 times in 148 posts
January 15, 2010 at 5:15 pm #329397Hello novajugo,
following code is for Logo Image or Logo Text, which you want to replace for a Module:
<?php
$siteName = $this->sitename();
if ($this->getParam('logoType')=='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'))=='') ? $config->sitename : $this->getParam('logoText');
$sloganText = (trim($this->getParam('sloganText'))=='') ? JText::_('SITE SLOGAN') : $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; ?>Next code-lines are for the search-module; if you want to get rid of it, or want to change position, you can comment it out or delete it here:
<?php if($this->countModules('search')) : ?>
<div id="ja-search">
<jdoc:include type="modules" name="search" />
</div>
<?php endif; ?>Here you can enter code for new module.
You need to be very precise to get all lines OK.If you wish you can send me your homepage link.
I don’t know what error you get means.
Normally you would create a new Custom HTML Module, fill it with image of your logo, and publish it on newly created position.
But this posiotion needs some styling first.Greeting,
MicranthaJanuary 15, 2010 at 5:20 pm #329398The error was because the params.ini became unwriteable.
I restored the original templatedetails.xml and the parsing error went away.
I understand what you mean with the code now.
I tried to delete the logo code and add the new position. I also added the position in templatedetails.xml.
The result was that the new module was above the search module.
To make my goal easier to understand:
1) I want search module to remain where it is.
2) I want the new module to cover the whole area where logo + search is, but for search module to be on TOP of the new logo moduleI will send you the link right now.
micrantha Friendmicrantha
- Join date:
- May 2007
- Posts:
- 465
- Downloads:
- 0
- Uploads:
- 6
- Thanks:
- 6
- Thanked:
- 158 times in 148 posts
January 15, 2010 at 9:12 pm #329416Hello novajugo,
OK, you can try following code:
changed header.php
<div id="ja-header" class="wrap">
<div class="main">
<div class="inner clearfix"><!-- new position-->
<?php if($this->countModules('newposition')) : ?>
<div id="newposition">
<jdoc:include type="modules" name="newposition" style="xhtml" />
</div>
<?php endif; ?>
<!-- end new position--><?php if($this->countModules('search')) : ?>
<div id="ja-search">
<jdoc:include type="modules" name="search" />
</div>
<?php endif; ?></div>
<div class="ja-topbar clearfix">
<p class="ja-day">
<?php
echo "<span class="day">".date ('l')."</span>";
echo "<span class="date">, ".date ('M')." ".date ('d').date ('S')."</span>";
?>
</p><p class="ja-updatetime"><span><?php echo JText::_('Last update')?></span><em><?php echo $this->getLastUpdate(); ?></em></p>
<?php if($this->countModules('headlines')) : ?>
<jdoc:include type="modules" name="headlines" />
<?php endif; ?><?php if($this->countModules('syndicate')) : ?>
<div class="ja-syndicate">
<jdoc:include type="modules" name="syndicate" />
</div>
<?php endif; ?><jdoc:include type="modules" name="megamenu" />
</div>
</div>
</div>
Changes in template.php:
new lines:#newposition{
height:62px;
width:100%;
position:relative;
left:-15px;
top:-10px;
}
changed lines:
#ja-search {
float: right;
margin-top: 20px;
position:absolute;
top:30px;
right:10px;
}
Now you have to create Custom HTML Module:
– enter your logo image in it (proably width 978px; height 82px;
– for position parameter enter the name of new module
– give module a Module Class Suffix, for example _logoMaybe you have to fine-tune positioning.
Hope it works for you.
Regards,
Micrantha -
AuthorPosts
This topic contains 7 replies, has 2 voices, and was last updated by micrantha 14 years, 10 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum