~/talk

Put a Little Backbone in Your WordPress

Talkat WordCamp Asheville 2015 · 2015-07-25..07-26· [wordpress, javascript]
links:none on file
slides:none on file

Backbone and Underscore are bundled with WordPress and are used here to build client-side UIs that fetch and save JSON via the JSON REST API v2. Demos show a single-post model fetched by a custom sync URL, a collection-driven post list with a router and history, and an editable view using contenteditable that saves with model.save (requires a nonce required for saves and login). Uses WP_localize_script bootstrapping, WP_Backbone_View for subviews, and debounce/throttle to limit requests; the demos work but note API field changes like content.rendered.

AI-written summary · about

  1. 0:00Introduction and story
  2. 3:14Why use Backbone.js
  3. 8:54Backbone basics and structure
  4. 13:14Fetching and bootstrapping data
  5. 19:31Underscore utilities in WordPress
  6. 24:45Coding in Backbone and challenges
  7. 30:03Demo 1: Displaying a single post
  8. 36:36Demo 2: List and detail views
  9. 42:16Demo 3: Editing content
  10. 47:18Conclusion and resources
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.