2020-04-28, 22:00:30
Hi,
Thanks for showing the IM constants and the available FileUpload field properties.
Util::preformat($item->fields->image); is also super cool for debugging.
With this info I could debug my faulty code and now have everything working.
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Fun fact is that echo '<img alt="" src="'. $my_item->fields->image->fullurl[0] .'" width="100" >'
is working on the home page but not on the about page
On the about page I have to add IM_SITE_URL to make the image show on the front
echo '<img alt="" src="'. IM_SITE_URL . $my_item->fields->image->fullurl[0] .'" width="100" >'; // this is working !
Maybe this has something to do with the Innovation theme or maybe Laragon local server
that I am using.
Anyway, IM_SITE_URL is really very handy to use.
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
I had a look at ItemManager v3 but it does not seem to have a visual GUI.
I guess it was designed to use it programatically. Advantage is that it
makes it independent of a CMS and can use it anywhere as a php include.
What I like about ItemManager v2 as a plugin for GS is the visual GUI
under the Manager Tab in the GS backend. The visual GUI makes it easy.
Thanks for showing the IM constants and the available FileUpload field properties.
Util::preformat($item->fields->image); is also super cool for debugging.
With this info I could debug my faulty code and now have everything working.
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Fun fact is that echo '<img alt="" src="'. $my_item->fields->image->fullurl[0] .'" width="100" >'
is working on the home page but not on the about page
On the about page I have to add IM_SITE_URL to make the image show on the front
echo '<img alt="" src="'. IM_SITE_URL . $my_item->fields->image->fullurl[0] .'" width="100" >'; // this is working !
Maybe this has something to do with the Innovation theme or maybe Laragon local server
that I am using.
Anyway, IM_SITE_URL is really very handy to use.
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
I had a look at ItemManager v3 but it does not seem to have a visual GUI.
I guess it was designed to use it programatically. Advantage is that it
makes it independent of a CMS and can use it anywhere as a php include.
What I like about ItemManager v2 as a plugin for GS is the visual GUI
under the Manager Tab in the GS backend. The visual GUI makes it easy.