View Full Version : Does not pick up navigation buttons on included.txt
sdasevne
12-25-2011, 07:11 PM
Version 5.1 (1016) Professional does not seem to pick up pages in an included text file. My index.shtml has an <!--#include virtual="inc/logo.txt" --> statement which contains my navigation buttons; however, these pages are never spidered. The website is MidtownChurch.net, and the included file in all pages looks something like this:
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="position: relative; top: -66px; ">
<tr>
<td width="8%" align="center"><a class="mind"
href="http://midtownchurch.net/index.shtml"> Home </a></td>
<td width="8%" align="center"><a class="mcal"
href="http://midtownchurch.net/calendar.shtml"> Calendar </a></td>
<td width="8%" align="center"><a class="mcon"
href="http://midtownchurch.net/contact.shtml"> Contact </a></td>
etc.
wrensoft
12-26-2011, 09:01 AM
I don't think there is any problem with the HTML code posted.
Did you check the log for errors?
Are you indexing in spider mode or offline mode. If you are using #includes, then you need to use Spider mode.
sdasevne
12-26-2011, 11:42 AM
Yes, I am using spider mode, starting at http://www.midtownchurch.net/index.shtml. The only warning message says "14 files indexed, 356 files skipped". BTW, thanks for your prompt reply, even on Christmas Day!
wrensoft
12-26-2011, 07:29 PM
What was the reason given in your log for the files being skipped?
All the links on your site are without a sub-domain,
midtownchurch.net
so you should also do the same for the start point. That is to say, don't use the www. subdomain if non of your deeper pages use it.
sdasevne
12-26-2011, 11:18 PM
The message says "skipping http://midtownchurch.net/sermons.shtml (External site - does not match base URL". My common menu items all link to "http://midtownchurch.net/some.shtml" so that the same included menu can be used in any level or sublevel page. My "start spider" URL is "http://www.midtownchurch.net/index.shtml" and my base URL is "http://www.midtownchurch.net". I will try changing my included menu to add the "www" to all menu links so that it matches the base URL.
sdasevne
12-26-2011, 11:54 PM
I changed all my html menu links to add the WWW to match the base URL and it worked OK. I also tried removing the WWW from the base URL to match my links, and this worked too. As long as they are consistent it seems to work fine. Thanks for your help!
Powered by vBulletin® Version 4.1.12 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.