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!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.

Ok