A
|
alang 4/17/2009 |
On the visual editor page, double click the field and select hyperlink for "view as" type. You can then set the URL prefix as "file://..." for whatever your base path is. |
D
|
drbyte2009 author 4/18/2009 |
On the visual editor page, double click the field and select hyperlink for "view as" type. You can then set the URL prefix as "file://..." for whatever your base path is.
|
![]() |
Admin 4/18/2009 |
You can use 'View as' type 'Custom' and access any field via $data["FieldName"]. global $data; |
D
|
drbyte2009 author 4/19/2009 |
You can use 'View as' type 'Custom' and access any field via $data["FieldName"]. Example: global $data;
|
J
|
Jane 4/20/2009 |
Hi, $value = "<a href=\"folder/".$data["FieldName"]."\" >Link</a>;
|
D
|
drbyte2009 author 4/20/2009 |
Hi, here is just a sample: where folderis your actual name of directory where your files are stored.
|
J
|
Jane 4/20/2009 |
Sorry for my fault. $value = "<a href=\"folder/".$data["FieldName"]."\" >Link</a>"; |
D
|
drbyte2009 author 4/20/2009 |
Sorry for my fault. Here is the correct:
|
D
|
drbyte2009 author 4/20/2009 |
Thanks this works !!, only where can i place the extension of the file, now i get only the filename without the extension. The extension is always the same. Thanks a lot !!
|
![]() |
Admin 4/20/2009 |
Try the following: $value = "<a href=\"doc/".$data["filename"].".txt\">".$data["filename"]."</a>"; |
D
|
drbyte2009 author 4/20/2009 |
Try the following: $value = "<a href=\"doc/".$data["filename"].".txt\">".$data["filename"]."</a>";
|
![]() |
Admin 4/20/2009 |
I see what you saying. |
D
|
drbyte2009 author 4/21/2009 |
I see what you saying. You can right-click on this link and choose 'Save link as'.
|
![]() |
Admin 4/21/2009 |
It depends on your browser. Some browsers will open text files right in the browser while others will offer to download the file. This is a browser thing and you cannot control it from the web page. |
D
|
drbyte2009 author 4/21/2009 |
It depends on your browser. Some browsers will open text files right in the browser while others will offer to download the file. This is a browser thing and you cannot control it from the web page.
|