Jump to content

create a search feature etc.


Ant

Recommended Posts

First I'm asking this question here because our co's web designer cant figure it out. So I figured maybe someone here can tell me if it is possible or where to look to get the answers.

 

This is the type of thing I need to recreate and have it appear on our current site. OR I guess it can be a separate page on it's own. Either way. http://www.crosssection-online.com/search.asp

 

Presently my co. website runs on Joomla. We have a search feature that searches everything on the site. However now I need to create a separate search function on the site that will search a folder with html files in it. I will be uploading all these html files.

 

Is there a way to do that? I was told it cant be done using the current search feature because it's a database using php and won't work on html files.

 

How hard is it to place a separate search feature on the current site that will only search folder X on either the current server or a separate server and output results on the current sites page where that search box resides.

 

Since I was told it won't work on the current site I assume this folder with the html files in it needs to be on a separate server.

 

 

 

Thanks.

A.

Edited by Ant
Link to comment
Share on other sites

This is probably something that would be challenging to build yourself (or at least build well.) Having the searchable content stored within a database makes this task way easier.

 

Your best bet is probably to either look at embedding Google search (http://www.google.com/sitesearch/) within the site, and using it to search the files, or looking for a read-made script that has HTML searching capabilities. http://www.wrensoft.com/zoom/php.html is one option, though I personally have no experience with it. Searching for "html search php" should give you some others.

Link to comment
Share on other sites

Since I was told it won't work on the current site I assume this folder with the html files in it needs to be on a separate server.

I don't think that's necessarily true. As far as I understand it, the reason your current search doesn't work with is that Joomla expects the contents that it is searching to be within the database, and it is not built to search static HTML files.

Link to comment
Share on other sites

I don't think that's necessarily true. As far as I understand it, the reason your current search doesn't work with is that Joomla expects the contents that it is searching to be within the database, and it is not built to search static HTML files.

 

 

Ben, thanks. What we wanted was a search feature on the current site that would search html files that I place on the server. We assumed it would have to be added to the current site as an additional search function/module whatever it's called. I am not sure why the current search function cant be modified to ALSO search for html files in folder X.

 

I'll look into the links you posted.

 

I was told one option was to upload the html files as "articles" and hide them from readers, although I guess thats very time consuming.

 

A.

Link to comment
Share on other sites

I am not sure why the current search function cant be modified to ALSO search for html files in folder X.

Could it? Possibly. But searching a database and searching individual files are completely separate tasks, and you'd basically be writing that feature from scratch. Have you checked for a Joomla search plugin that might do this? That's one other possibility.

 

I was told one option was to upload the html files as "articles" and hide them from readers, although I guess thats very time consuming.

Well, yes, that would cause those articles to appear within Joomla's search, but I'm assuming that adding all the individual pages would be a lengthy process.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...