Active
Project:
Premium
Version:
6.x-1.0-alpha1
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 Jan 2012 at 01:41 UTC
Updated:
15 Mar 2012 at 18:52 UTC
I am trying to figure out a way to add an icon next to the premium content title.
Please see the attached image - the icon in the last list item represents something like I'm trying to do.
If anyone has any insight in how to accomplish this, please let me know.
Thanks in advance!
| Comment | File | Size | Author |
|---|---|---|---|
| premium-content-icon.png | 8.41 KB | scott859 |
Comments
Comment #1
minnur commentedI was able to add an icon using template_preprocess_node:
see http://api.drupal.org/api/drupal/includes%21theme.inc/function/template_...
Code:
this gives you a new variable $premium_icon and it's available in node.tpl.php so you can display it anywhere in node template.
Comment #2
minnur commentedProbably $node object contains indicator that show whether it's premium content or not.
try do print_r($node) and see if there is something like $node->premium