Skip to main content
Participating Frequently
August 30, 2021
Question

site search with in the site.

  • August 30, 2021
  • 3 replies
  • 890 views

Hello! im tryimg to make a search bar for my website were the customer can search for a name and get the result from the website. how do i create a search bar that can give same result for different names and numbers?? 

 

can some one help me?? 

    This topic has been closed for replies.

    3 replies

    BenPleysier
    Community Expert
    Community Expert
    August 30, 2021

    I think that you are best off using a JSON datafile and JavaScript to handle the logic.

     

    Have a look at https://youtu.be/1iysNUrI3lw

     

    You will need a local web server like WAMP or similar if you want to test the site locally. This is because the Fetch API is used in the example.

     

    You can make it easier for yourself by using a few Dreamweaver extensions

    1. App Connect

    2, App Connect JSON Data Source

    3. App Connect Data Traversal

     

    Or use Wappler which includes the extensions.

     

     

    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
    Participating Frequently
    August 31, 2021

    are there any free alternatives?? 

    Nancy OShea
    Community Expert
    Community Expert
    August 31, 2021
    quote

    are there any free alternatives?? 

    ===========

    Like I said in my first reply, FREEFIND.com is a free service. 

    Google's custom web search is also a free service.

    No coding skills required for either one.

     

     

     

    Nancy O'Shea— Product User & Community Expert
    Nancy OShea
    Community Expert
    Community Expert
    August 30, 2021

    If you don't want to use Google's custom search feature (there are pros & cons with it), look at FREEFIND.com which has both free version with ads and paid version without ads.  After Freefind indexes your site's content (usually within a few hours), you can activate the search form with some copied & pasted code.

     

    Post back if you need more help.

     

    Nancy O'Shea— Product User & Community Expert
    Jon Fritz
    Community Expert
    Community Expert
    August 30, 2021

    Probably the easiest way would be to add a Google search to your site: https://support.google.com/programmable-search/answer/4513751?hl=en&ref_topic=4513742 

     

    There's nothing in DW that can do this for you though. DW has a couple of templates with a search bar, but it's just an html form. It doesn't do anything until it's attached to some server scripting. If you want to add true search functionality to your site that isn't controlled by Google's crawlers, you'd need to create a database driven site, then use a server side scripting language, like PHP, to search the database when a view submits the form (search bar) and display results. 

    Participating Frequently
    August 30, 2021

    The thing is that the customer i have already have pages and information on a server. my customer have a museum with lot of old streets that have gotten new names. My idea is to have a search bar for our website that can give the visitor possibility to search for a specific street with the older name or the new names. 

    Nancy OShea
    Community Expert
    Community Expert
    August 30, 2021

    Static HTML content cannot be searched.  It must first be placed in a database of some kind. 

     

     

    Nancy O'Shea— Product User & Community Expert