![]() |
|
![]() |
#1 |
Green Mole
Join Date: Aug 2004
Posts: 4
|
How to index only part of page <title>?
How can I only index part of the page titles. I have the same beginning text one all pages. I don't want to index that part of the title. Can I exclude a string from indexing so that it won't index that part of the page titles. Perhaps I should use a meta tag for the page title. Also in connection with this, when I previously tried using the <!-- php Exclude --> tag to exclude the <title> from indexing it resulted in search results with no title text at all. So if I were to exclude the <title> when indexing how to I make the results show a page title?
This is the site I'm working with: http://www.clba.org |
![]() |
![]() |
![]() |
#2 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
Hi. Search for $title = trim($regs[1]); in robot_functions.php and then substr or str_replace it.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension. |
![]() |
![]() |
![]() |
#3 |
Green Mole
Join Date: Aug 2004
Posts: 4
|
Not Quite It...
Thanks but that only really removed the title text that is stored after a page has been indexed. The full title is already indexed prior to that function.
|
![]() |
![]() |
![]() |
#4 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
Did you try a reindex? If you don't want to reindex, you'll need to edit the first_words column of the spider table to remove a portion of the title.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension. |
![]() |
![]() |
![]() |
#5 |
Green Mole
Join Date: Aug 2004
Posts: 4
|
Yes, that was after the reindex. What seemed to work was placing the following:
Code:
//replace site-wide title text $text = str_replace("Church of the Lutheran Brethren : ","",$text); //replace common site-wide text $text = str_replace("Church of the Lutheran Brethren","",$text); |
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
<!-- phpdigInclude --> and <!-- phpdigExclude --> doesn`t work | Paka76 | How-to Forum | 0 | 12-06-2005 05:44 AM |
Index HREF in <FORM> ? | thenniart | Troubleshooting | 1 | 08-15-2005 10:17 AM |
Indexing "<word>-<word>"? | FaberFedor | How-to Forum | 23 | 02-28-2005 03:35 AM |
Title of the results - how to change from <phpdig:page_link/> | bforsyth | How-to Forum | 12 | 07-15-2004 08:53 PM |
Instructions for use <!-- phpdigExclude --> and <!-- phpdigInclude --> | maquido | How-to Forum | 1 | 06-02-2004 03:36 AM |