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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

Images from backend content field are not displayed in frontend


Go to End


5 Posts   1113 Views

Avatar
MarioSommereder

Community Member, 107 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
MarioSommereder

Community Member, 107 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
MarioSommereder

Community Member, 107 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. =)