Closed andrew-luhring closed 10 years ago
Hi @andrew-luhring, welcome to Ghost!
I totally appreciate your enthusiasm! Unfortunately, apps are still a work in progress, and have been ignored for a time whilst we shipped other stuff. I don't think it's been tested recently so it may well be completely broken at the moment. The documentation you found is intended for people creating demo apps whilst trying to make apps work. Obviously, at some point we need people to try to build real world apps in order to test that everything is working, but I'm not sure that time has come just yet.
Two alternative things for you:
{{content words="0"}}
hackI just updated the "Installing" part of https://github.com/TryGhost/Ghost/wiki/Apps-Getting-Started-for-Ghost-Devs. Note the backslash escaped double quotes!
Seems to work for me, but as of now I've just added console.log()
to the lifecycle methods. Next step: adding a handlebar helper (although https://github.com/TryGhost/Ghost-App/issues/14 is not very encouraging... )
first issue :-)
So... I've been digging through the ghost source all day today trying to find a way to hook into the Posts array and only grab the main image of every post (Protip: there isn't one... As far as I can tell, anyway -- even though each post does, in fact, have an "image" property). Anyway, at some point I stumbled onto this api feature, and now I'm here. So hi.
How do I install an app I make? I've read this And I'm stuck on this because I am evidently so bad at sql, that I can't add an item to an array.
In
/content/data/blah.ghost.json
I see:so I:
And that didn't... blow anything to pieces, but it still doesn't work-- or if it does, I can't figure out how to make it say so... I stopped and restarted ghost. Nothin. Where am I going wrong?