The Joomla! Forum ™





Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Thu Jan 12, 2006 9:50 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Mon Jan 09, 2006 9:26 pm
Posts: 57
Location: Wierden, Nederland
Hello,

I use mambelfish and works very great :D

But i want to use for the bothe languages i use a different header / logo.

How can I do this


Top
 Profile  
 
PostPosted: Fri Jan 13, 2006 8:54 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Fri Aug 19, 2005 5:23 pm
Posts: 557
Location: Gogledd Cymru
In your template you can do a switch based on the value of $mosConfig_defaultLang (you'll probably need to use "global" to get it).

Hope this helps

Geraint

_________________
email: opensourcematters at copynDOTplusDOTcom


Top
 Profile  
 
PostPosted: Fri Jan 13, 2006 11:36 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Mon Jan 09, 2006 9:26 pm
Posts: 57
Location: Wierden, Nederland
thank you for  your reply....but what do you mean with
Code:
 switch based on the value of $mosConfig_defaultLang (you'll probably need to use "global" to get it).


Top
 Profile  
 
PostPosted: Fri Jan 13, 2006 11:46 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Fri Aug 19, 2005 5:23 pm
Posts: 557
Location: Gogledd Cymru
You need to get into the php of the template file.  This message is not quite the same problem but may give you a clue:

http://forum.joomla.org/index.php/topic ... #msg113762

_________________
email: opensourcematters at copynDOTplusDOTcom


Top
 Profile  
 
PostPosted: Fri Jan 13, 2006 5:40 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Mon Jan 09, 2006 9:26 pm
Posts: 57
Location: Wierden, Nederland
Thanks, that works....I made a kopie of the index.php (twice) and renamed them to index_nl.php and index_en.php.

Then i made an index.ph with this code

Code:
<?php
 global $mosConfig_lang;
if ($mosConfig_lang=="dutch") include_once("index_nl.php");
else if ($mosConfig_lang=="english") include_once("index_en.php");
?>


And so I can make two different headers for each language


Top
 Profile  
 
PostPosted: Fri Jan 13, 2006 5:47 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Fri Aug 19, 2005 5:23 pm
Posts: 557
Location: Gogledd Cymru
If you put the test around a block of the code that sets the header/logo then you'd only need one file (probably easier to maintain)

_________________
email: opensourcematters at copynDOTplusDOTcom


Top
 Profile  
 
PostPosted: Fri Jan 13, 2006 5:50 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Mon Jan 09, 2006 9:26 pm
Posts: 57
Location: Wierden, Nederland
i'll think you're right. But how do i have to do that?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 



Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group