attributes

How best to implement a service with xml attributes

Hi,
I'm very new to drupal services and I've been trying to use the rest_server module and it seems to work pretty well for my purposes (just getting the data out rather than putting it in). I'm now getting to the point where I'd like to be able to add attributes to the xml elements in the response, but I'd like these to be extensible to other server modules if possible (so i'd like to do it in my service module rather than implement a new server.

Login to post comments · Read more
agaric's picture

Creating a Product with Additional Descriptive Text Fields (space for seller-defined attributes)

I'm very much hoping this isn't a feature request for 4.8... I'll just explain my situation:

I'm making a fundraising auction site for a nonprofit arts center, and really all I want to do is add some attributes for the volunteers adding items to fill out in addition to the description, that is, have a field to enter the name of the person who donated the item, and another field for the estimated market value.

I thought it would be trivial to create my own product type based on the auction module and with an extra field or two, but it has not been!

I can see many reasons to add open-ended text fields in addition to one big block for "description" to products, so I hope someone has some experience or advice.

4 comments · Read more
kulvik's picture

Products with different attributes (not so easy)?

I'm currently building a webshop that sell clothes. Before I start installing and configuring the e-commerce module I really need to understand one consept. How can I create different products with different attributes? Here's an example:

Lets's use socks as an example. Socks come in different types (sports, wool, light summer etc.). These are all separate products. However, each product come in different colors and sizes (attributes). The number of attributes on each type is not constant, for example:

Sports sock comes in

  • Medium - Black
  • Medium - White
  • Large - Black
8 comments · Read more
Syndicate content