Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.5
Component:
table style
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Apr 2009 at 08:58 UTC
Updated:
8 Jul 2010 at 21:45 UTC
hello,
I want to display node signup links with views 2 (raw style: fields). However, only nodes with enabled signup must have the signup link. I don't know how to add such an optional field. More generally is it possible to display conditional fields with views 2?
Thanks
Comments
Comment #1
iNade commentedSubscribing.
Comment #2
dawehnerat the moment its not possible, sure you could create a display which can do this.
As alternative you can theme the fields, then you can use $row to check for another field.
Comment #3
masood_mj commentedI want to use "has new content" field in the table theme file to highlight unread messages. However, when I print the "timestamp" field using
print $row["timestamp"];it prints<span class="marker">new </span>. I want to use its value in a if to change the row css class. How can I get a field value without its html tagsComment #4
dawehnerthen you can look in $view->results, i think.
There should be the result of the databasequery
Comment #5
masood_mj commentedI'm writing a view theme file. It seems that $view variable is not defined there.
Comment #6
merlinofchaos commentedComment #7
dawehnerwhat do you mean with view theme file?
Comment #8
masood_mj commentedI mean "views-view-table.tpl.php," file that I have written in my theme file to override the default table style of a view
Comment #9
esmerel commentedGiven the age of this issue, I have hope that it's resolved or no longer relevant.