This topic is locked
[SOLVED]

 Visual Editor "View as" settings: Custom

2/15/2010 12:52:41 PM
PHPRunner General questions
samsp author

hi,
only a short question:
in the Visual Editor
"View as" settings: Custom
is that possible????
if($_SESSION ["language"] == "German")

$value = $data["name_de"];

elseif($_SESSION ["language"] == "Spanish")

$value = $data["name_es"];

else

$value = $data["name_en"];
greetings
sam

J
Jane 2/16/2010

Yes. This code will work in PHPRunner 5.2.

samsp author 2/17/2010

hi jane,
thank you,
it works perfect, but only on the view page. is that code with that function possible on the list page???
greetings
sam

J
Jane 2/17/2010

Sam,
this code should work on both view and list pages.

If it doesn't work publish your project on Demo Account and open a ticket at http://support.xlinesoft.com sending a URL to your pages along with instructions on reproducing this error.

samsp author 2/17/2010

hi,
found the mistake.
i had a declaration: global $data;
it runs only for the view or edit site.
now everyhing works well