I am using drupal 7 with view3

I have content type named News having many fields along with a taxonomy field named News Type, News type have terms: 'Free' and 'Premium', I am displaying News on my page through view, the problem i am facing is I need to redirect the news node to some external url like popup, if its premium news, means if its News Type field is set to premium it should not be redirected to its content, In short when premium news is viewed it should popup some message instead of showing the content of that news,and for free news it should go to the news node detail page. Please find the screenshot of view attached. Please help will be greatly appreciated. If I need to clarify please comment.

enter image description here

1 Answer 1


To change content link... You can try using Views Conditional Module...

Project page says

Views Conditional is a simple module that allows you to define conditionals (if xxx then yyy) with fields in views. Conditions include:

Equal To

Not Equal To

Greater Than

Less Than


Not Empty

Views conditional allows you to output text based on the result of the condition.

If it doesn't work then you can solve it using views php module..

  • Thanks for replying, but I do not understand how views conditional module will help me, I need to change the href of a title of news to popup if its taxonomy is premium.
    – Mudasir
    Apr 21, 2014 at 12:49
  • For Field Term name check for premium.. Rewrite results of term name and display a link using Replacement patterns... Create one more term field just to display term name... Disable content link and use above as content link.. Make sure Term name field is below other fields while using replacement patterns and exclude unnecessary fields..
    – Anil Sagar
    Apr 21, 2014 at 12:51
  • "For Field Term name check for premium", You mean I will add term name as a field, but it will be itself added as a link to term view page, how I can override its link with using replacement pattern. Also I need to show the title field of a news, because free news should be viewed by users, please clarify me if I am wrong.
    – Mudasir
    Apr 21, 2014 at 13:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.