Keyword

How do I change the "K2 Items" label for the Search Only element in Search?

  • Mary Beth House
  • Mary Beth House's Avatar Topic Author
  • Offline
  • New Member
More
15 years 5 months ago #77636 by Mary Beth House
I'd like to change the label for "K2 Items" to "Blog Entries" for the "Search Only" section on the Search page... but I can't find where the Search component is getting that label from.

Please Log in or Create an account to join the conversation.

More
14 years 10 months ago #77637 by Matt Medley
I am also looking to change this label. Anyone know where we can find it? Thank you.

Please Log in or Create an account to join the conversation.

More
14 years 10 months ago #77638 by Matt Medley
Hmmm, seems so simple, should be in a language ini file somehwhere but I can't find it. Anyone?

Codeless said:I am also looking to change this label. Anyone know where we can find it? Thank you.

Please Log in or Create an account to join the conversation.

More
14 years 10 months ago #77639 by irish
Hi Mary and Codeless,

In your root/plugins/search/k2.php

find around line 19:
static $areas = array('k2'=>'K2 Items');

and replace with:
static $areas = array('k2'=>'Blog Entries');

-or-
change the text between the single qoutes 'k2'=>'K2 Items' to whatever you want.

Be sure to back up file first.
I know many have herd this before...I recommend using Firebug and Web Developer for firefox - these two tools can help a bunch when troubleshooting and over all development - lots of features...

Hope that helps

Please Log in or Create an account to join the conversation.

More
14 years 10 months ago #77640 by Matt Medley
thanks a million!

irish said:Hi Mary and Codeless,
In your root/plugins/search/k2.php

find around line 19:
static $areas = array('k2'=>'K2 Items');

and replace with:
static $areas = array('k2'=>'Blog Entries');

-or-
change the text between the single qoutes 'k2'=>'K2 Items' to whatever you want.

Be sure to back up file first.
I know many have herd this before...I recommend using Firebug and Web Developer for firefox - these two tools can help a bunch when troubleshooting and over all development - lots of features...

Hope that helps

Please Log in or Create an account to join the conversation.

  • Jenni Provenzano-Sherwood
  • Jenni Provenzano-Sherwood's Avatar
  • Offline
  • New Member
More
11 years 9 months ago #77641 by Jenni Provenzano-Sherwood
Thanks heaps, right where you said. :woohoo:

Please Log in or Create an account to join the conversation.

More
11 years 2 months ago - 11 years 2 months ago #77642 by Robert_ITMan
Better if you not edit the /plugins/search/k2.php file - it will get replaced with an update and will not translate to the proper language when you start using that feature - if you changed it you should restore it to how you had it before... notice this is an old thread and the line is now:
static $areas = array('k2' => 'K2_ITEMS');

Instead add to your language override.ini file, for example add the following line to your /language/overrides/en-GB.override.ini file and replace "Blog Entries" with what ever you want. NOTE: since Joomla 2.5 you can also edit this in joomla backend > Extensions > Language Manager.
K2_ITEMS="Blog Entries"

www.ourfingertips.ca - websites developed and managed @ ourfingertips

Let me help you make the most of the technology at our fingertips

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum