If I understand correctly...
You can write own function
http://doc.silverstripe.org/framework/en/reference/image
Just put it in the Controller
Sorry for my bad English
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
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.
If I understand correctly...
You can write own function
http://doc.silverstripe.org/framework/en/reference/image
Just put it in the Controller
Sorry for my bad English
But normaly i have to define a variable in the page.php or object.php and with this variable i can get the saved content to the templates.
I mean which is the variable here to get the Images?
I don't want to use $SetWidth(xx) i want the image wit its original size.
and even if I write a function. I stil have to put a variable inside?!
or?
Sorry, I misunderstood :)
I think that the best solution would be to use this form:
<img src="$URL" />
then you will have the original size
Sorry for my bad English
Thx a lot! :)
And your english is not more worse than mine ;)
Great share by svandragt. If you're using Silverstripe 3 this works perfectly, adds multiple images and gives you the flexibility to structure the template page appropriately. Perfect!