Closed (fixed)
Project:
Premium
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
30 Jan 2007 at 12:43 UTC
Updated:
21 Aug 2007 at 16:52 UTC
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.
Comments
Comment #1
Chill35 commentedTest 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 :
Something like that.
Comment #2
allie mickaSee also http://drupal.org/node/92178