1

I'm not going to use the real scenario here, just a very simple one that I think should be working.

I have a View. This view does access some Solr stuff.

I've added a new field to the view. It's a Global PHP field. My end goal of this is that I'd like to make this field sortable when you click the table heading.

In the "Value code":

return "asdfasdf";

In the "Output code"

<?php
  print $value;
?>

This returns... nothing. No errors, no output. This is the simplest example I could think of. Am I missing something here?

"Output code" does display other things, even complex things if I ask it to. It just seems like "Value code" is being completely ignored.

2

It works for me. I put the information you said in a PHP field and it printed out as expected. I imagine it's a caching issue or something else about your site that is causing the issue.

enter image description here enter image description here

  • Okay. Thanks! I have a feeling it's related to the view being generated using Solr data. – jdu Dec 9 '13 at 14:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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