1. ziggy
  2. Sherlock Holmes
  3. Commercial Templates
  4. Friday, 15 February 2013
  5.  Subscribe via email
hello,
i've a question, is it possible to remplace the search module position(controllable only by template) with the joomla integrated language switcher?
if yes what should i do?
thx a lot for the patience
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Sebastian

In your templates header.php you can try replacing the following in your templates index.php (../templates/j51_clarity/index.php)

	<?php if($search_onoff == "1") : ?>
<div id="search">
<?php echo $search; ?>
</div>
<?php endif; ?>


With

<div id="search">
<jdoc:include type="modules" name="search" />
</div>


This will create a module position (search) in place of the preinstalled search module.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
hello thx a lot for the answer :)
i've try to remplace the code in the index.php but then when i go in the module to assign a position i don't find the search position in the carity template position list..
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Sebastian

To create the position within this list simply type it in to the Positions field.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
hello,
if i type the position appear only the beez3 search position but not the clarity..

http://img715.imageshack.us/img715/2732/searchp.png
  1. more than a month ago
  2. Commercial Templates
  3. # 4
Accepted Answer Pending Moderation
0
Votes
Undo
Simply type search in to the field without selecting any position from the list and click save.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 5
Accepted Answer Pending Moderation
0
Votes
Undo
that's what i've do, but when i type search,it will atomatically turn to search position of beez3 template...
  1. more than a month ago
  2. Commercial Templates
  3. # 6
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Sebastian

May I suggest sending temporary administration access to your Joomla installation to info@joomla51.com and we will examine this further for you.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 7
Accepted Answer Pending Moderation
0
Votes
Undo
i've send you an email :)
  1. more than a month ago
  2. Commercial Templates
  3. # 8
Accepted Answer Pending Moderation
0
Votes
Undo
Thank you Sebastian

As you have correctly pointed out there is indeed an issue when typing in a module position that already exists so I have renamed the module position in your templates index.php to searchmodule and it now appears to be working correctly. I have created an example module (Test Module) and it appears to be showing correctly.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 9
Accepted Answer Pending Moderation
0
Votes
Undo
thx a lot work fine :)
  1. more than a month ago
  2. Commercial Templates
  3. # 10
Accepted Answer Pending Moderation
0
Votes
Undo
Hello Ciarán!
I want to do the same thing with my search module, i changed from my Clarity template file - index.php


<?php if($search_onoff == "1";) : ?>
<div id="search">
<?php echo $search; ?>
</div>
<?php endif; ?>


with

<div id="search">
<jdoc:include type="modules" name="search" />
</div>


but you renamed the module position in your templates index.php to searchmodule.

The changes in the index.php should look like this?

<div id="search">
<jdoc:include type="modules" name="searchmodule" />
</div>


??

Thank you!
Victoria

P.S. Or maybe there is another option/place to set the language flags in Clarity Template?
  1. more than a month ago
  2. Commercial Templates
  3. # 11
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Victoria

Yes that is correct. Changing the replaced code to the following will change your module position name to searchmodule


<div id="search">
<jdoc:include type="modules" name="searchmodule" />
</div>


Ciaráb
  1. more than a month ago
  2. Commercial Templates
  3. # 12
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!