PDA

View Full Version : Exclude text or parts of a page from the search


sbrazil
02-03-2004, 12:26 AM
In my search results it is picking up menus/navigation items and the footer navigation too.

I have tried using the <!-- phpExclude --> tag but it's not working. Do I need to respider the site for this to work?

Also am I using these tags correctly:

table to be excluded
<!-- phpdigExclude --><table width="121" border="0" cellspacing="0" cellpadding="0">

<tr>
<td valign="top"><img src="../images/arrow_nav.gif" name="arrownav" width="32" height="19" border="0" id="arrownav"></td>
<td class="content"><a href="../index.html" class="contentlinks"><font color="#990000">Home</font></a></td>
</tr>
<tr>
<td valign="top"><img src="../images/inv.gif" width="10" height="10"></td>
<td class="content"><img src="../images/inv.gif" width="10" height="10"></td>
</tr>
</table>
start content to be included
<!-- phpdigInclude -->

Do I need to start the include comment from the first entry after the BODY tag in my HTML page?

Is this the only way for the excellent phpdig to ignore parts of an HTML page, so it dosen't show up in the search description?

many thanks

simon

sbrazil
02-04-2004, 10:10 PM
so there isn't a solution to this...

simon

Charter
02-05-2004, 07:27 AM
Hi. The exclude/include tags need to be each on their own line. If your pages are dynamic, try using \n in the code.