guardian46
Joined: 31 May 2005
Posts: 34
Posted: 2010-11-21 19:25
Back to top
Reply with quote
|
I have this:
Code: |
$opts['fdd']['filename']['URLprefix'] = 'files/categorya/'; |
in my configuration.
I'd like to replace 'categorya' with a variable that will use the folder name in which the file resides. In other words, my folder 'files' had sub-folders 'categorya - categoryz', is there a way to enter the file name in the 'filename' field and have the URLprefix value be entered as the value of another field (field with all the sub-folder names) in the table?
Any help appreciated. Thanks.
|
doug
Joined: 10 Feb 2003
Posts: 1013
Location: Denver, Colorado (USA)
Posted: 2010-11-22 20:33
Back to top
Reply with quote
|
If you omit the built-in usage of URL-type options, you can build your custom link using the MySQL CONCAT function. Search the forum for CONCAT and HREF to find some examples of custom links.
|
Post new topic
Reply to topic
|
|
|