Several requests on this from Jason and I think Pierre, some suggested text but I cannot lay my hands on it. (Please, please use the issue queue!)

I have created a function:

function wsf_action_place_view_empty($view = array(), $place_tid = NULL) {
  return t('No content of this type yet.');
}

This is translatable, and more importantly I can extend it later to do all kinds of cool stuff, like checking if the user is logged in and offering the appropriate link to register or create an action (space).

This requires some code in the argument handling code of views to show up. I've done it for Wikis only so far.

Dan-- if you could do the following:

Better way:

Argument Handling Code
Argument Code:

$view->page_empty = wsf_action_place_view_empty($view, arg(1));

Still have to make sure to check off "Use page empty" under the Block Empty Text.

Add this code to the Page Empty Text box:

print wsf_action_place_view_empty($view, arg(1));
with content filter type PHP Code

And check off "Use page empty" under the Block Empty Text.

Comments

mlncn’s picture

NOTE:

ONLY:

$view->page_empty = wsf_action_place_view_empty($view, arg(1));

Still have to make sure to check off "Use page empty" under the Block Empty Text.

Needs to be done. The one before that was the not-so-easy way.

mlncn’s picture

Assigned: Unassigned » mlncn
Status: Active » Fixed

Done an even better way: with a call to a view hook in the wsf_action.module.

See http://agaricdesign.com/note/modifying-view-views-hook-example-custom-em...

The main advantage here is that this text is immediately translatable and, in the future, customizable.

pierregrg’s picture

it is difficult to visualize what you are proposing , need more explanations please

the text could say "there is no action happening in this place for the moment"

mlncn’s picture

Not proposing anything Pierre – I did it! I was just describing how it was done.

To see it, go to any /place page, such as http://www.wsf2008.net/eng/place/901

It simply puts in the text: "No content of this type yet." (This is translatable.)

For a proposal of what more can go here, and below existing content, see http://drupal.org/node/206445

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.