Topic: Insert Link with File Manager
I am trying to insert a link into highlighted text by clicking the insert link button, and then the integrated browse button in the pop-up. Because I am using filemanager, I expected the link to be inserted with the filemanager_insert_template setting I created. Instead the link just inserts normally.
The whole point of the template is to insert links that direct to a php stream file that downloads the selected document, instead of linking directly to the document. For example http://www.mysite.com/username/dl.php?f stfile.pdf vs http://www.mysite.com/username/docs/testfile.pdf. That way I can implement security on the document downloads and deny direct access. Also please note that the username portion of the url changes based on what user is being edited, so the template needs to be set on the fly when the page is loaded.
If the insert template is not the way to go about this, then what is? Its a big confusing issue for me and one I need to resolve asap!
Thank you
Last edited by justin916 (2009-10-30 01:43:17)