Some random stuff about things I'm interested in - web
development, asp.net, mvc, umbraco, hml5, css3, responsive design.
Opinions expressed here are my own and not those of my
employer.
Thursday March 8, 2012
both provide palceholder images, dummyimage shows dimensions, which can be handy
Thursday January 12, 2012
Thursday January 12, 2012
use Model.Media("propertyName") when you have a property on your
current model
use Library.MediaById when you have an ID number or that ID
comes from querystring
see this forum post
http://our.umbraco.org/forum/developers/razor/27447-Why-is-there-no-simple-answer-to-this!!-Razor,-Parameter,-Media?p=0#comment103148
Sunday January 8, 2012
Yes displaying a Google Map counts towards API usage, as seen
here:
http://code.google.com/apis/maps/faq.html#usage_mapload
It says:
A single map load occurs when:
- a map is displayed using the Maps JavaScript API (V2 or V3)
when loaded by a web page or application;
- a SWF that loads the Maps API for Flash is loaded by a web page
or application; or
- a single request is made for a map image from the Static Maps
API.
- a single request is made for a panorama image from the Street
View Image API.
The degree to which a user interacts with a map once it has been
loaded has no impact on the usage limits.