Closed (won't fix)
Project:
Insert View
Version:
5.x-1.0
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Dec 2008 at 15:03 UTC
Updated:
13 Jul 2011 at 18:22 UTC
Jump to comment: Most recent
Comments
Comment #1
mlsamuelson commentedIn Drupal 5 you can use [view:name of view=x] where x is the number of node results to display.
(BTW, in Drupal 6, you cannot control the number of nodes in the tag. Instead, you would set the number of results to show in the view's display.)
Comment #2
alex72rm commentedNo, I need to know in advance how many nodes are in the view, 'cause I must perform a particular action when nodes number is zero.
Comment #3
Anonymous (not verified) commentedWhy not put some code in the view on empty field ?
Comment #4
alex72rm commentedUhm... it should be a good solution, but I don't know how to manage the related output.
Have you some more hint?
Thanks a lot,
Alessandro
Comment #5
Anonymous (not verified) commentedNot really knowing what you need to do and also being no expert :)
insert view will display the view when it has content, or not
In views there is a field for empty text, which will take php, so if your view contains no results it displays the content of that field, so by putting your action in there you should achive what you want
Comment #6
pasqualleclosing all D5 issues
http://drupal.org/node/347819