how to get image object?
Hi,i am trying to get and manipulate an image object (SS3.1) within a function. But $image = Image::get()->where("\"Name\" LIKE '%$filename%'"); wii return a DataList and not the image object...
View ArticleRe: how to get image object?
i am about to solve the problem. public $relationCallbacks calls public static function imageByFilename. Everything works fine, only the last return will cuase an server error: return $image....
View ArticleGet image width using url of the image
I am trying to get the image width from the url of the image. Is that possible ??What i am trying to do is, if a user uploads image from the editor and if the width of image uploaded is greater than...
View ArticleRe: Can't Open/Edit pages in the Admin & Other Issues
I'm not sure this gets to the root issue, but to give an update, if I remove Director::set_environment_type("dev"); from my config file I can open and edit the pages I was previously having trouble...
View ArticleRe: Get image width using url of the image
Hi Sultan,You wont be able to do it via the URL. You'll need to actually load the image first to read that property. Unless of course you control the HTML you could output it in the <img> tag.To...
View ArticleRe: Cannot access admin area - "Page not found" [RESOLVED]
Dear All, I am having the same issue. Previously I was having my site on www.mydomain.com/silverstripe and I was able to easily access the url www.mydomain.com/silverstripe/admin, but when i move it to...
View ArticleRe: Get image width using url of the image
Thanks Bambii7 for your reply. I tried the examples in the link provided by you. But width and height is coming blank.Can u please share a working example.Posted to: Get image width using url of the...
View ArticleCan't log in after installation.
Hi there,I have installed the SS on local drive and now trying to access it at: http://localhost:42635/which is displaying the default home page fine, but to edit it I need to open the CMS, see...
View Article# of page revisions vs performance?
This question came up the other day:What sort of performance hit is caused by having pages with many revisions (for that matter, what would be considered a large # of revisions for SilverStripe pages)?...
View Articlesecuring admin and security sections with ssl
Hi I'm running silverstripe 2.4.5, can anyone point me to any documentation on how I get these areas protected by SSL?Currently in _config.phpI have Director :: set_environment_type ('live');//force...
View ArticleRe: PHPUnit Exception testing
OK so it was all working as it should. Trouble was in my validate function I was checking isset. Which it was set with an empty string. So switched to !trim($this->Expiry) and bingo! successfully...
View ArticleGetting Relationship before DO is created?
Hi, I am wondering if there is a better solution for the following:- TourPage has_many Routes has_many Places.- when clicking on "Create a new Place" the object does not exists yet (it does not have an...
View ArticleSorting one Model only in ModelAdmin
Hi,I've set up a ModelAdmin to manage multiple models. Only one of these requires drag-and-drop sorting. When I add add sorting capability to the ModelAdmin, it complains because the non sorted Model...
View ArticleRe: Sorting one Model only in ModelAdmin
It was fairly simple in the end:class VAdmin extends ModelAdmin { public static $managed_models = array( 'PCategory', 'AItem' ); static $url_segment = 'd-admin'; static $menu_title =...
View ArticleRe: Loading a new page with sliding animation (Ajax?)
Hi everyone! I solved the background issue..but one last question is left: how can I change the URL in the browser window for each page on ajax load so that the user get the impression that something...
View ArticleRe: Loading a new page with sliding animation (Ajax?)
Google pushstate. History.js is a good library for doing that.Posted to: Loading a new page with sliding animation (Ajax?) | Show Thread | Post Reply
View ArticleRe: how to get image object?
Hi, unfortunately i still get an server error. The relation CallBack for 'Marke' works fine. But what is the secret behind relationCallbacks and Images? The Object is there! Please can anybody...
View ArticleRe: Can't log in after installation.
Hi I too have the same problem Posted to: Can't log in after installation. | Show Thread | Post Reply
View ArticleRe: Can't log in after installation.
In your mysite/config.php, set a default username and password with:Security::setDefaultAdmin('admin','password');Then log into the CMS with those details, set yourself up a new admin account, then...
View ArticleRe: how to get image object?
Hi,Now i have an errorlog and it says:[Error] Uncaught Exception: Object->__call(): the method 'produktbild_image' does not exist on 'Produkte'But in Produkte.php the relation is set via: static...
View Article