Solid Waste Agency Website

From Metro Studios Knowledgebase

Jump to: navigation, search

Please add documentation for any development projects you work on for the St. Luke's website.

Contents

[edit] Database Credentials

[edit] Git

[edit] Search

[edit] July 6th, 2011

Fixed search behavior, removed unused files related to search.

[edit] Suggest autocomplete behavior

[edit] Files:

/themes/solid-waste/scripts/suggest.js

init.GET_suggestion
function used to update the suggestion drop down
uses ajax to get results from /search/search_p.php

/search/search_p.php

getSuggests()
uses suggest table to build list of suggested words
display()
Used to display the suggested search terms
[edit] Gotchas/Things to know

Table "SUGGEST_TBL" is build automatically by the keyword options in "Where does it go?" dashboard area

[edit] "Instant" Search results generation

[edit] Files:

/themes/solid-waste/scripts/suggest.js

init.Suggest() function is used to both generate the search suggestions and "instant" search behavior.

/search/search_p.php

"content" get parameter is included in Ajax call, so getResults() function called
getResults()
queries item_tbl (table for "Where does it go?" dashboard area)
OutputFormat()
used to display one "instant" search result
Personal tools
Namespaces
Variants
Actions
Wiki Navigation
Knowledgebase
Toolbox