Skip to content
David Sanders edited this page Aug 20, 2015 · 2 revisions

The projects page depends on the code for america projects endpoint api: http://codeforamerica.org/api/ https://github.com/codeforamerica/cfapi

For San Jose it is: var codeForAmerica_Projects_endpoint = "http://codeforamerica.org/api/organizations/Code-for-San-Jose/projects?per_page=999";

To prototype a better projects page commit and edit projectspage.php under the main theme folder (Shoestrap 3 I believe) of the live CfSJ WordPress site. Note: projectspage.php is https://github.com/codeforsanjose/codeforsanjose.github.io/tree/master/projects with php and WP wrapped around it. That is, https://github.com/codeforsanjose/codeforsanjose.github.io/tree/master/projects/index.html (and the corresponding js file) was copied into projectspage.php. See David Sanders for more info. Shivani is redesigning the CfSJ web site. The projects page will be redone to have the new php and styling.

If you don't have access to the WP site and want to test changes to using the CfA projects API, you can modify https://github.com/codeforsanjose/codeforsanjose.github.io/tree/master/projects/index.html , then view the committed file at http://codeforsanjose.github.io/projects/. Note that the source in GitHub must be merged into the live CfSJ WordPress site to see the live, public page.

If you want to edit individual metadata about your project edit the title, description, or civic.json of your github repo. There are rules of works on their pages.

After we feel we have made a better projects page prototype, we make small edits to the code to make a php file which we upload directly to the server. This will update our webpage.

Clone this wiki locally