When I look throught the code, I see that the "value_form" adds a PHP textarea. However, this doesn't seem to show up in the View editing pane. Is there a special combinaison of click I need to do to make this textarea appear (except enabling the module ! :-)

Comments

Alice Heaton’s picture

Hi Greg,

You have to add it as a filter -- in your view, add a new filter ; select the 'Views' group, and tick 'Views modify query'.

You can then enter the PHP code by editing the filter.

Does this answer your question ?

greg911’s picture

Status: Active » Fixed

Yes it's perfect !
Maybe a little doc could help to prevent thoses "stupid" questions :-)
I just have to figure out "how" to add my custom tables to the view fields list !

Thanks a lot for the quick answer

greg911’s picture

Status: Fixed » Closed (fixed)
mrtoner’s picture

Category: support » task
Status: Closed (fixed) » Active

Reopening: need compatibility w/ Views 2.0rc2.

Alice Heaton’s picture

Status: Active » Postponed (maintainer needs more info)

@mrtoner : Could explain what the problem is please ?

mrtoner’s picture

Sorry, I should have been clear. The Views group does not appear in the filter, nor does Views modify query. I updated to Views rc2 yesterday, which I understand has broken a few other modules. I installed VMQ for the first time after updating Views.

Alice Heaton’s picture

Status: Postponed (maintainer needs more info) » Active

Ok - I haven't tested with Views RC2 yet. It seems another of my views module is broken with RC2 as well ! I'll update soon and will let you know what the situation is.

Alice Heaton’s picture

Status: Active » Fixed

Ok, I've commited the fix. Remember It'll take up to 12 hours for the nightly snapshot to get updated.

While there, I also added a feature ; you can now output the result of the code as Views Field.

mrtoner’s picture

Yup, that did it! BTW, "If you do know what you are doing, do not use this." -- did you deliberately word that statement like that?

Alice Heaton’s picture

"If you do know what you are doing, do not use this." -- did you deliberately word that statement like that?

Ooops, no I didn't ! Thanks for pointing this out :)

Anonymous’s picture

Status: Fixed » Closed (fixed)

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