To aid navigation we would prefer our users to only create pages that have a title of less than or equal to 30 characters. Is there a relatively easy way that this can be accomplished? I've seen a javascript solution that uses a method called PreSaveAction but it's not really what I'm looking for as it has got to work site wide (whether they're in the site settings or in the front end gui using the ribbon).
We are currently deploying our content types via a feature in visual studio if that helps.
edit: in addition this should also limit the length of the url too right? For example we would prefer our users to not create very-long-page-names-that-are-not-user-friendly-etc-etc-etc-etc-etc.aspx