I want to create a content pane view for node titles that have been posted into an organic group. I want to have a custom empty text that comes when there are no postings, e.g. "This group has no posts yet."

But I want also to use views agruments' validator option to check whether the user is a member of that group. If he's not a member following text should be returned: "You're not a member of that group... etc..." But as I'm already using the empty text option for the no postings case (see above) I cannot achieve that.

The "Action to take if argument does not validate:" option does have some possibilites, but none such as "Display custom text", where I could write that "You're not a member..."-text. This is just a static value, can this be achieved somehow?

Thanks!

Comments

merlinofchaos’s picture

Status: Active » Fixed

Unfortunately you're stucking using PHP code in the empty text to determine what you want to display. At this time that is really the only solution.

drupov’s picture

Hi,

thanks for your answer. PHP sounds like a nice solution to me anyway. But sorry to be asking, as I'm not that familiar with drupal code, what would be "inputs" in the empty text fields to differentiate between the "Action to take if argument does not validate:"-empty text and the empty text coming from no postings?

Can you give me a brief hint or a place to start looking?

Appreciate it!

Status: Fixed » Closed (fixed)

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