This is the wrong thread for ItemManager, next time, please use this thread for your questions: http://get-simple.info/forums/showthread.php?tid=7293
Hmmm... It's always the same image that you use on every page?
ItemManager does not provide a file picker field to use it with GS files library, with the exception of WYSIWYG editor field.
I don't know what you do with it, but the file upload might not be the right field for you. ItemManager's files are always bound to a specific item and isn't just a simple file picker, as used by custom fields. IM upload field uses an array as value and provides a more complex functionalities like filtering, sorting, resizing, cropping creating thumbnails and removing the files again if you delete an item.
What you can do at the moment is to use a single item as your file library and then left it to your main item in order to assess its images.
Another option is to use WYSIWYG editor field, there you can use GS file library.
You can also use the functionality of the "i18n custom fields" plugin and javascript with ItemManager's Chunk field, as a quick and dirty solution. You'll need to download the "i18n custom fields" plugin for this and unzip in your plugins folder, you don't need to install it, if you not want. Now, create a Text field in ItemManager with CSS class "image1" and a Chunk field with default value, here's a dirty code example without styling:
Just replace "your-domain.com" with your domain name. You can also create as many pickers as you like, just change the javascript for these purposes. Now, create a new item and click the "Browse" button, the file browser of the "i18n custom fields" opens and you can select your image.
To access your image in front-end you can use echo $your_item->fields->image1->value
But a better and cleaner solution would be to create a real file picker field for ItemManager, that uses GS file browser
Hmmm... It's always the same image that you use on every page?
ItemManager does not provide a file picker field to use it with GS files library, with the exception of WYSIWYG editor field.
I don't know what you do with it, but the file upload might not be the right field for you. ItemManager's files are always bound to a specific item and isn't just a simple file picker, as used by custom fields. IM upload field uses an array as value and provides a more complex functionalities like filtering, sorting, resizing, cropping creating thumbnails and removing the files again if you delete an item.
What you can do at the moment is to use a single item as your file library and then left it to your main item in order to assess its images.
Another option is to use WYSIWYG editor field, there you can use GS file library.
You can also use the functionality of the "i18n custom fields" plugin and javascript with ItemManager's Chunk field, as a quick and dirty solution. You'll need to download the "i18n custom fields" plugin for this and unzip in your plugins folder, you don't need to install it, if you not want. Now, create a Text field in ItemManager with CSS class "image1" and a Chunk field with default value, here's a dirty code example without styling:
Code:
<div class="fieldarea">
<button id="browse" href="#">Browse</button>
</div>
<script>
function fill_path(url) {
$('.image1').val(url);
}
$(function() {
$('#browse').click(function(e) {
window.open('http://your-domain.com/plugins/i18n_customfields/browser/filebrowser.php?func=fill_path&type=images', 'browser', 'width=800,height=500,left=100,top=100,scrollbars=yes');
e.preventDefault();
});
});
</script>
Just replace "your-domain.com" with your domain name. You can also create as many pickers as you like, just change the javascript for these purposes. Now, create a new item and click the "Browse" button, the file browser of the "i18n custom fields" opens and you can select your image.
To access your image in front-end you can use echo $your_item->fields->image1->value
But a better and cleaner solution would be to create a real file picker field for ItemManager, that uses GS file browser