Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Monday, November 19, 2018
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  Can a variable or field value be in aURLprefix?

phpMyEdit Installation     Can a variable or field value be in aURLprefix?
Post new topic   Reply to topic    
 
guardian46     Joined: 31 May 2005   Posts: 33  
Post 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: 1012   Location: Denver, Colorado (USA)
Post 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    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy