Working with a restructured application
Having completed the restructuring process, we now have to understand the process of creating new functionalities from scratch. So, in this section, we are going to build the Developer List page with an autocomplete search using AJAX. Let's get started with the requirements planning.
There can be many lists within the portfolio management application. So, we need a new rewrite rule for implementing list-based pages. Then, we need a separate template for displaying the data for the developer list. All the existing developers will be displayed in the initial page load. Users can then use the autocomplete textbox to run a search on the developers. The list will be updated on the jQuery keyup
event of the textbox to filter the list of developers using the search string.
We have to start the process by adding a new rewriting rule to WordPress. Remember that we merged all the rewriting rules into the manage_routing_rules
function of the Template_Router
class...