After testing different options to insert images I succeeded with Tinybrowser (With Tinymce integration). But as I only need the picture in the fields it should not be necessary to use the Tinymce and it gives one more 'window' in the selection process. But I don't know where I can add the call for Tinybrowser as standalone for a particular field.
The readme guide says:
| Citácia: |
Place the following javascript link within the <head> tag on the page you
require TinyBrowser:
<script language="javascript" type="text/javascript"
src="/tinybrowser/tb_standalone.js.php"></script> |
That's easy and I adapt the path to my situation.
Then to launch Tinybrowser the readme guide says:
| Citácia: |
To launch TinyBrowser use the following javascript function:
tinyBrowserPopUp('type','elementid');
'type'
can contain 'image', 'media' or 'file' - corresponding to the type of file you want TinyBrowser to manage.
'elementid'
is the id of the page element you want populate with the file url TinyBrowser returns - this is generally a form text input. If you want to immediately display the image then create an <img> tag with the same element id, only suffixed with img - e.g. elementidimg. |
I have no clues for the launch as I don't know where to put the tinybrowserPopUp - I imagine 'elementid' should be the name of a field in the databasetable.
Any idea of where to place the call and how to express the field - perhaps the pure name is not enough without defining a variable - so that it would be '$fieldname' and not 'fieldname'
|