I'm using 'Custom' in the 'view as' and 'edit as' in the PHPRunner editor. Is there a variable that contains what page the user is on? In other words, how can I test if the user is on the list, edit, or view page? In my 'Custom' code, I'd like to make a slight change to how one of my pictures is displayed, depending on the calling page. For example, on the list page I would like to display a very small picture (nameofpicture_vsm.jpg), on the view page I would like to display the medium size picture (nameofpicture_m.jpg and on the edit page, I would like to display the large picture (nameofpicture_l.jpg) - three different images with same name with a _vsm, _m or _l as part of the name.
I did a search for global variables and session variables in the forums, but didn't find anything that describes this. I also looked in the manual but didn't have any luck there either. I guess one option would be to took at the URL ($_SERVER['HTTP_REFERER'] or $_SERVER['QUERY_STRING'] for _list or _view but there should be an easier way.
As a side question, is there someplace that describes what global or session variables are exposed and available? I didn't see this listed in the manual. Would make a great reference.
PHPRunner 7.0 build 19454