Active
Project:
Node Option Premium
Version:
6.x-1.2
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Jan 2012 at 15:51 UTC
Updated:
23 Feb 2012 at 18:19 UTC
I'd like to be able to display a "premium" icon next to the title (in Views, especially) of any node that is "premium." Any suggestions?
Comments
Comment #1
anrikun commentedYou have to do some theming here. First, do you know how to theme view fields?
Read http://drupal.org/node/1178182#comment-4557552 about how to check the premium value of a row.
Comment #2
Katrina B commentedI used a field rewrite to show an icon for "Premium" content -- but items in the View that are not Premium are getting labeled as "Premium" and vice versa (even if I disable the field rewrite).
Comment #3
anrikun commentedPlease post some code so that I can see what you did.
Also a screenshot of your view field editing form would help too.
Comment #4
Katrina B commentedHere's my View code:
Comment #5
Katrina B commentedWhich part of the View field editing form would you like a screenshot of? The entire form is way too long for me to capture in one screenshot.
Comment #6
anrikun commentedWhat you've just provided should be enough, thanks. Just give me some time to check your view.
Comment #7
anrikun commentedI confirm there is a bug here, the same as #1198466: node->sticky field has incorrect 'output formats' because of a bug in Views documentation.
As this is a bug, I'm reopening the related bug issue you had posted and I had closed.
See #1414204: Views field: "Output format" values are reversed
Comment #8
criscomHi,
thanks for this great module. It is a lifesaver for me. One question: How can you get a PC icon to display for the title of a node? This could be accomplished if a class were added to the
<h2>tag of a node when the premium content is checked in the publishing options. Any suggestions how this could be accomplished? I am using version 7.x.1.1.Chris