Skip to content
Alanna Scott edited this page Nov 28, 2018 · 3 revisions

Each page (or most of them, anyway) should support access as html, html fragment, JSON, XML, or CSV. All text in each page template must be localized values.

NOTE: Depending on the current state of refactoring, not all of these may be implemented yet.

Paths

Arguments

  • ?query=[search terms] for full text search
  • ?page=[pageno] for pagination of search results
  • ?display=[list | grid] layout of search results
  • ?type=[all | cases | methods | tools | organizations | resources | news | users] filter, only returns selected type
  • returns=[null | map] return search results for display or for map
  • returns=[json | csv | xml | html | htmlfrag] to get back different formats from the API

Search path

  • / Homepage and search results.

Static pages

Static pages include about, teaching, experiments, research, legal, and possibly admin.

  • /[page]
  • /[page]/edit
  • /[page]/localize
  • /[page]/edit-localize

Article pages

Articles are all the database thing types: cases, methods, teaching tools, users, organizations, news, etc.

  • /[thingtype]/[id] View article
  • /[thingtype]/[id]/edit Edit article
  • /[thingtype]/[id]/localize?[from=en;]to=es Localize article
  • /[thingtype]/localize?[from=en;]to=es Localize edit template
  • /profile redirects to /users/[id] for the current user's id if they are logged in

deprecated paths

  • /cases deprecated search filter, replace with /?type=cases
  • /methods deprecated search filter, replace with ?type=methods
  • /organizations deprecated search filter, replace with `?type=organizations'
Clone this wiki locally