![]() |
Alexey admin 2/19/2007 |
Andre, if(file_exists("files/".$value)) { $value="<a href=\"files/".$value."\">".$value."</a>"; } else $value=""; |
A
|
asimha author 2/19/2007 |
Andre, use Custom View type for your field. Here is the sample code for Custom expression box:
|
J
|
Jane 2/19/2007 |
Andre, global $data; if(file_exists("/docs/" . $data["docs"])) { $value= "<a href=\"/docs/" . $data["docs"] . "\" target=_blank onclick=\"java script:ShowDoc('" . $data["doc_name"] . "',this.href,'1'); return false;\">DOC</a>"; } else $value=""; |
A
|
asimha author 2/19/2007 |
Andre, $data variable is the global array and you need to define it:
|
![]() |
Sergey Kornilov admin 2/19/2007 |
Andre, |
A
|
asimha author 2/19/2007 |
Andre, what exactly is the error?
|
![]() |
Sergey Kornilov admin 2/19/2007 |
Andre, |
A
|
asimha author 2/20/2007 |
Andre, what is the line 343 in your include/commonfunctions.php file?
|
![]() |
Alexey admin 2/20/2007 |
Andre, |
A
|
asimha author 2/20/2007 |
Andre, try to remove target="_blank\" clause from your code.
|
![]() |
Alexey admin 2/20/2007 |
Andre, |
A
|
asimha author 2/20/2007 |
Andre, the solution we provided does work. Inspect your code, check field and directory names etc , find and fix the error.
|