- Posts: 8
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- How do I change the "K2 Items" label for the Search Only element in Search?
How do I change the "K2 Items" label for the Search Only element in Search?
- Mary Beth House
-
Topic Author
- Offline
- New Member
Less
More
15 years 4 months ago #77636
by Mary Beth House
How do I change the "K2 Items" label for the Search Only element in Search? was created 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.
- Matt Medley
-
- Offline
- Junior Member
Less
More
- Posts: 37
14 years 8 months ago #77637
by Matt Medley
Replied by Matt Medley on topic How do I change the "K2 Items" label for the Search Only element in Search?
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.
- Matt Medley
-
- Offline
- Junior Member
Less
More
- Posts: 37
14 years 8 months ago #77638
by Matt Medley
Replied by Matt Medley on topic How do I change the "K2 Items" label for the Search Only element in Search?
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.
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.
- irish
-
- Offline
- Senior Member
Less
More
- Posts: 53
14 years 8 months ago #77639
by irish
Replied by irish on topic How do I change the "K2 Items" label for the Search Only element in Search?
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
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.
- Matt Medley
-
- Offline
- Junior Member
Less
More
- Posts: 37
14 years 8 months ago #77640
by Matt Medley
Replied by Matt Medley on topic How do I change the "K2 Items" label for the Search Only element in Search?
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
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
-
- Offline
- New Member
Less
More
- Posts: 1
11 years 8 months ago #77641
by Jenni Provenzano-Sherwood
Replied by Jenni Provenzano-Sherwood on topic Re: How do I change the "K2 Items" label for the Search Only element in Search?
Thanks heaps, right where you said. :woohoo:
Please Log in or Create an account to join the conversation.
- Robert_ITMan
-
- Offline
- New Member
Less
More
- Posts: 10
11 years 1 month ago - 11 years 1 month ago #77642
by Robert_ITMan
www.ourfingertips.ca - websites developed and managed @ ourfingertips
Let me help you make the most of the technology at our fingertips
Replied by Robert_ITMan on topic Re: How do I change the "K2 Items" label for the Search Only element in Search?
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:
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.
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.
- Forum
- K2 Community Forum
- English K2 Community
- How do I change the "K2 Items" label for the Search Only element in Search?