Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Images from backend content field are not displayed in frontend


Reply


5 Posts   792 Views

Avatar
knsqnt

Community Member, 85 Posts

28 February 2011 at 1:01am

Hey there!

I'm inserting an image to the content field (the all easy standard way through the backend). In the backend, everything works fine, but the image won't be shown up in the frontend.

I found out, that the src attribute misses a leading slash. When I enter this slash manually, the image ist shown as it should.

No idea how to fix this. Anyone any idea? Thanks in advance!

Cheers, Mario

Avatar
knsqnt

Community Member, 85 Posts

1 March 2011 at 6:36am

Has noone an answere? For me, this is a huge problem, because the user will not be able to add any images to his content.

Avatar
Ryan M.

Community Member, 309 Posts

1 March 2011 at 3:08pm

Do you have <% base_href %> in your template's head section?

Avatar
knsqnt

Community Member, 85 Posts

1 March 2011 at 9:56pm

Sweet Dude! That's it! I never knew what this was for. Thanks so much.

Ah, by the way, the tag is named <% base_tag %>, but I knew what you ment.

Thanks again!

Cheers, Mario

Avatar
Ryan M.

Community Member, 309 Posts

2 March 2011 at 10:59am

Lol, yeah, that's the one. Cheatsheets are one of my crutches, that's why I might not remember something correctly off the top of my head. =)