On Thursday, May 15, 2003, at 09:04 AM, Hussein Shafie wrote: > Jeremy Quinn wrote: >> >>> OK, I'll add 2 new boolean parameters to the file-name-field: >>> basename >>> (default no) and extension (default yes). >>> >>> basename=yes means that you just want the basename of the file (ex. >>> logo.jpeg) rather than its absolute or relative path. >>> extension=no means that you want to strip the extension (ex. .jpeg) >>> from >>> the absolute or relative path or basename returned by the file >>> chooser. >> >> Thanks for the offer to do this, but it will not actually help us in >> this situation. Except for the suffix bit. >> >> Most of our 'path stubs' contain '/'. >> >> We would need a 'base' url to start from (ie. to strip from the >> beginning of the urls that get written into the document). >> >> What about one string param and two booleans: >> >> suffix: TRUE|FALSE - use suffix, yes or no >> filename: TRUE|FALSE - use only the file name, not any of the >> path, >> yes or no >> base: STRING - XML document/server root to be stripped from >> paths > > I understand what you need but what you suggest is not generic enough > to > be implemented in file-name-field(). So forget about the suffix and > filename parameters. My idea was simple and generic but not powerful > enough.
So, do you think there is an alternative way of handling this? Via a custom macro/command etc? regards Jeremy

