These are chat archives for jescalan/roots

11th
Aug 2016
Eleazar Junsan
@eljun
Aug 11 2016 01:04

Hi Jeff, honestly I doubt it would be useful to add the module to your extension list as I am not confident on my skills as I've told you before I'm no programmer. Besides it is design specifically for netlify-cms running with roots I can't guarantee that it would work with normal roots project.

I will be glad if you would check my nooby codes and ask for suggestions and improvement that would be helpful.

This is currently the working version of the module:

https://www.npmjs.com/package/webriq-roots-rss-generator

This is the working example:

https://rss-generator.netlify.com/feed.xml

David Eglin
@djeglin
Aug 11 2016 09:11
We seem to be getting a lot of requests for wordpress sites at my new place of work, and we have our own internal cms and there is a bit of resistance to going full wordpress (which I totally understand). I have been thinking about using roots and wordpress, which the guys seem fairly up for, but I have a couple of questions
I've got a testbed set up which is consuming the starter posts for a wordpress.com site, and it took me about 5 minutes to get up and running, which is great. To add more advanced functionality in, though (javascript powered search and related content, for example), I would need the wordpress content as JSON available to the front-end. I've been looking at the limited examples for the wordpress extension, but there's nothing there. Is this possible, or would it be something I would have to write separately>
David Eglin
@djeglin
Aug 11 2016 09:34
NVM. Simple jade file to output json. Duh.
Tom Kraak
@tkraak
Aug 11 2016 10:14
@djeglin or go full api with rooftopcms.com
David Eglin
@djeglin
Aug 11 2016 10:20
@tkraak I don't see how that would make any difference, seeing as I am already successfully using the wordpress.com api
Tom Kraak
@tkraak
Aug 11 2016 10:48
just throwing out another option
Eleazar Junsan
@eljun
Aug 11 2016 10:54

Nice one @tkraak thanks for the tip, just as I need.

I been thinking of creating an almost free sites using, netlify & roots. But in most cases people would really want to use traditional wordpress sites in that case I have an option reserved:D

Netlify + roots + github + wordpress (optional) = you would only need to pay for $domain name..

Tom Kraak
@tkraak
Aug 11 2016 11:13
@eljun right on!
contentful has a free plan too now
Jeff Escalante
@jescalan
Aug 11 2016 14:51
@djeglin you could script!= var wpContent = JSON.stringify(wordpress) at the bottom of a jade file, this would pull all the content into a globally available variable, or like someone else suggested just pop open a jade file with != JSON.stringify(wordpress) as the only contents
if you need the extension to be .json, this would have to be added to the plugin
but this is easy, the dynamic content plugin already does this if you want an implementation example
also might be worth checking out spike and spike-rooftop, this will end up being a much more robust way to do wordpress backends for static sites