0
votes

I have added a new content type event. Now, i have to make a view in which it shows a set of fields if the dateOfEvent (one of the fields) is less than the present date and some other set of fields of the 'event' content if the dateOfEvent is more than the present date. how can I do that in the views..

thanks in advance for helping...

3
Your except rate is zero! You should accept answers to some of the questions you've asked. (You do that by click on the check-mark next to the answer that you think is most appropriate.) - sprugman
@except rate didn't knew abt it.. will take care of it in the future.. @problem i know how to use them.. and my question is enough specific.. - w2lame

3 Answers

1
votes

Hmm... I think I'd do this in the theming layer. So in views, you would make all fields available, and then in the theme, you'd hide one set or the other depending on the date value. Whether to do it with views theming, or in the node_type.tpl.php file depends on how else you're using the cck types.

1
votes

Following this guide should get you where you're going: Step by Step Setup of Calendar View

1
votes

Are you using the Date module? It will add a bevy of new views options and make CCK date field easier to use in this manner describing exactly what you asked.