21474 Posts in 5781 Topics by 2620 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 996 Views |
-
GD Image functions in a template

13 January 2009 at 9:05pm Last edited: 13 January 2009 9:15pm
Hey
My code here seems to be causing the page not to load anything...
<% control Children %>
<div class="panel">
<a href="$Link">$OutfitImage1.resizeByWidth(280)</a>
</div>
<% end_control %>Can I not do this? Do I need to do something like shown here: http://doc.silverstripe.com/doku.php?id=imageupload#more_advanced_uses
-
Re: GD Image functions in a template

13 January 2009 at 10:14pm
Hi Fishe
try this: $OutfitImage1.SetWidth(280)
The image functions which resize images in this way do not have the same names as the $gd functions for some reason. You can see all of these functions by looking in sapphire/core/model/image.php
| 996 Views | ||
|
Page:
1
|
Go to Top |


