Newbie help, prob with inserting image tag?

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
riom
New Member
New Member
Posts: 2
Joined: Fri Jan 16, 2015 11:16 am

Newbie help, prob with inserting image tag?

Post by riom »

Hi guys,

I am just start out and am making a template. I wish to insert an Image tag so that an image can uploaded to a specific div in my html.

I tried adding {content_image block='image_1' label="My Image Block"} but when I go to the edit the page i get this error


My Image Block
Error retrieving file list



Any ideas what I have done wrong?

Thanks!
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Newbie help, prob with inserting image tag?

Post by velden »

Try:

{content_image block='image_1' dir='images' label='My Image Block}
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Newbie help, prob with inserting image tag?

Post by Rolf »

- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
riom
New Member
New Member
Posts: 2
Joined: Fri Jan 16, 2015 11:16 am

Re: Newbie help, prob with inserting image tag?

Post by riom »

Hi thanks, the following seemed to work

{content_image block="image_1" label="My Image Block" dir="images"}

but it only displays a drop down to select an image that's already in that directory.

Is there a way to create a browse button to select an image to upload instead?


thanks again
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Newbie help, prob with inserting image tag?

Post by velden »

Yes, you need an extra module to make that happen:

GBFilePicker

Read the help after installing and make sure to set the right permissions so Editors can use it too.
Post Reply

Return to “The Lounge”