Kitchen Sink for Drupal / Titanium

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
dereckd's picture

I've been messing around with Drupal and Titanium for a while. I started out with sumitk's examples and then when the Palentir code became available, I experimented a bit with that. I have not however been able to cobble together a working application with the functionality I desire.

The code that Palentir provided is very powerful, in that it keeps a persistent store of the drupal objects, in the phone. It is rather complex, however and difficult to follow (at least for me). It also uses views_datasource rather then services, which for some applications is not secure.

On the other hand I found the code the sumitk posted to be easy to understand, but perhaps lacking additional examples to make it more useful. Also it relies on the JSON server which is no long supported (I ran into trouble becuase JSON server does not return not reference fields).

I'm wondering is anyone is interested in trying to cobble together an example of some working drupal / accelerator stuff. Perhaps like a Kitchen Sink for drupal. Something people could download and then adapt to there needs. This would be extremely useful to me and I would be willing to chip in some money / time to make it happen. Anyone else interested in helping?

Comments

I could possibly help provide

rickyd1's picture

I could possibly help provide some examples for this

I don't have a lot of time, but I don't mind sharing what I have if it will benefit others out there. What type of features did you have in mind? I started out with sumtik's code. I found it pretty easy to use and simple to learn off of.

What do you mean JSON is not returning referenced fields? Could you explain what you are trying to do?

Thanks,

Rickyd

hey, so when I use Views

dereckd's picture

hey, so when I use Views Datasource, I can format node reference fields in a view so that when I fetch the view it displays that node reference as a title, or as and NID (of the referenced node). Using services, and json server, it simply does not work. I found a thread debating if it should or should not load referenced nodes. Unfortunately it's no longer supported. Views Datasource seems to work really well, my only issue is that it seems to lack and kind of user based security, which means if I create a JSON datasourse, anyone can access it.

I see what you are saying. I

rickyd1's picture

I see what you are saying. I have not referenced nodes. However, I referenced the an image field fid so I could pull the individual data of an image. It worked perfectly and I was able to distribute the app. I will attempt the Node reference over the weekend.

Also, you can set services up to be authenticated and your view does not need a display.

I would be interested in helping too

jarodms's picture

I don't have any code to share yet, but if someone starts a project or git repo somewhere I'd be glad to review and/or contribute when possible. I can start it also.

I see some code and samples for D6 out there, but I'd be interested in anything for D7 also.

Great idea

iaminawe's picture

I think this is an excellent idea and would help get a lot of peoples drupal powered titanium native off the ground

Here are some ideas as to how this sample app could be broken down

Fetch a view and display
Filter a view by an exposed filter
Displaying a view as a native map

User Registration /User Login screens
Editing/Saving/Displaying node info
Editing/Saving/Displaying user info

Would be great to advance the example over time to include things like taking photos & video and saving them back to a node as an attachment or into cck fields.

I think this would be a really interesting project and would definitely like to put some time towards this.

Bounty?

dereckd's picture

I would love to get this project going, and perhaps even get a bounty together to make it a reality, I looked around drupal.org to try and find some information on how to offer a bounty or collaboratively fund something, i found little useful and up to date info. Anyone have ideas about this?

I made some progress on this

dereckd's picture

I made some progress on this front nothing to commit yet really, and it took a while to figure out certain things, if anyone is messing with this and having trouble let me know

The REST API is documented at

lelizondo's picture

The REST API is documented at http://drupanium.org/api and there is also an app example using Drupal and Services at http://drupanium.org

Luis