tags:

views:

42

answers:

2

I effectively want two nodes:

  1. Normal Node
  2. Premium Node

The only difference will be that the premium node can take more images and a few other features. What is the best strategy to go about this?

  1. have two distinct nodes with the differences
  2. have one nodes and somehow find a to apply an UPGRADED attribute to it?

I would prefer (b), as I want users to be able to upgrade nodes. And migrating a normal node to a premium node will be very difficult.

Any idea how I can accomplish b?

+1  A: 

You might be able to implement (b) as two different input filters - one for non-upgraded and one for upgraded. Then "upgrading" the node would be as simple as changing the input filter applied to its contents.

Amber
But how do I limit users from uploading only 4 photos, instead of unlimited. That is one of the differences between a normal node and an upgraded one.
RD
The filter is passed the complete text of the node - your filter function and check through the text and see if more than 4 images are included. Restrictions on the actual # of images that could be *uploaded* to the server would probably need to be handled in whatever module you're using to upload the images.
Amber
This is not so easy if using CCK to upload the files. Most likely some sort of cck integration would be needed to do this kind of thing which get quite complicated very fast.
googletorp
+2  A: 

I would create two different content types (CCK), and either write custom code to translate between the two or use a module like http://drupal.org/project/node%5Fconvert (in order to upgrade a node); it might be complicated at first, but you would have the advantage of being able to apply all of your restrictions (allowed image count, permissions etc) on a per-content type basis.

threecheeseopera

related questions