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

02-03-2004, 01: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">

<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>
<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>
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


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


02-05-2004, 08: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.