How would we create a page that lists nodes that are marked/unmarked premium?

Also, how to flag non-premium items in a Views list of node titles (not teaser list) with a small graphic or text "FREE"?

If I could get the patch and Views integration below to work it would probably work. I have coding support and can contribute anything we do back to the community but first it would be good to get some pointers.

http://drupal.org/node/51483

Comments

Chill35’s picture

Test Eaton's TWO patches : http://drupal.org/node/51483

For the record, there is a flag called "premium" available on nodes, and that flag is set to 1 if the content is premium or set to zero if it isn't.

So to display an image next to the title, here is what I would do : add the title of the node to a class when it's non-premium, for example "non-premium", and use CSS to make an image appear next to that title.

In node.tpl.php :

<?php if (!$node->premium) :?>
  .... // add the class non-premium
<?php endif; ?>

Something like that.

allie micka’s picture

Status: Active » Closed (fixed)