What I try to achieve is create a simple Form where I will be able to add new content (like "Question" objects for instance) and access the information through Services 3.x. My problem is that I am new to Drupal and some guidance will be very helpful. I have tried to create a new custom content type, but as I need grouping of the fields, I used the "field collection" module. The problem there was that when using the node service I couldn't get the content of this field collection. So I am actually stuck now. The following questions appear in my head now:
- Do I need to write my own module to be able to extend the NODE object or I can achieve it by creating custom content type?
- Can I customize a service to return only desired properties (like only the id and the title of a node without returning all other properties like createddate, modifieddate, etc.) or should I create my own module to achieve this?
- If I need to create a custom module, can you point me to an example? (I have read the Drupal article for creating a resource for Services 3.x, but there they using a new custom object and not the NODE object)
- How can I have both a form to enter content and a service resource for the basic CRUD operations in one module? Using hooks?
Basically my point is to skip writing code for CRUD operations if it is possible and just use the ones from the NODE, but expose to the mobile app only some of the NODE properties and have a form where I can enter new content.
I am using Drupal 7.
I want to apologize for the messy post, but it really represents the thoughts in my head...