i created a view that displays my homepage fine but now a modification is needed: i load 2 fields (images) in my view but need to only display one of those, depending on the value of a third (date) field and today's date. if date field is later than today, show image y and if its earlier than today show image x. this kind of logic cant be done in a view.
so in my template.php id like to output x or y as $vars['img'] in the preprocess_page function. im just wondering, how do i get at the values of those fields? its not a node but a list of node teasers.
- the function gets passed &$vars but a print_r of those just shows the html output.
- custom sql seems not the way to go.
- when i load the view, i just get the html it outputs but (i think) i need the raw data to make the date comparison.
thanks for any pointers!