Timeline for Implementing Isomorphic JavaScript (React JS) in Wordpress?
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 27, 2017 at 15:04 | comment | added | WraithKenny | Calypso is basically a replacement for the WP Admin, not for themes. You could use this for building an app that isn't really a theme. But you can't really use it to build a general purpose theme that is compatible with php plugins. | |
Nov 26, 2017 at 18:28 | comment | added | Summer Developer | developer.wordpress.com/calypso is an updated answer to this question! | |
Jun 25, 2015 at 1:08 | comment | added | WraithKenny | I didn't have to solve it for this project, but I think a library would need to be written to handle all of the php logic in deciding what endpoint goes with what template. In addition, a request to the API would have to be done in some (all?) cases before the type of content was known to even be able to assign the proper controller/template. Perhaps it'd be better to create a wp-ajax handler that parsed and responded with that data in every route request, since it likely is needed anyway. | |
Jun 25, 2015 at 0:49 | comment | added | WraithKenny | I've just finished a project with Angular on WordPress, but it was very custom and didn't have a blog. It was still a pain. What I did was constructed the router to mimic the permalinks I actually used (custom-post-type + pages), and ignored everything else (blog, pagination, etc.). I only used the index template so everything fell through to it, and put what php content I output (for the robots) into the ng-view, but then hid ng-view (unused in app). This probably wasn't the best way, but as you said, permalinks were a pain. | |
Jun 24, 2015 at 23:37 | comment | added | INT | Very extensive answer, thank you! I've begun fiddling with AngularJS together with WP and I'm having a bad time due to how permalinks etc works with WP. Ideally I will separate them and only use WP to serve the data and let Angular live as it's own app. I'm not quite certain how the file structure would work. Do you have any tips? Put Angular in root and WP in a subfolder? I want the URLs to make as much sense as possible site.com/wp-admin would be swell. Think I'll just use PhantomJS or what not to handle SEO from here on. | |
Jun 24, 2015 at 23:33 | vote | accept | INT | ||
Jun 24, 2015 at 21:41 | history | answered | WraithKenny | CC BY-SA 3.0 |