Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 959331
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T01:00:30+00:00 2026-05-16T01:00:30+00:00

To aid navigation we would prefer our users to only create pages that have

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T01:00:31+00:00Added an answer on May 16, 2026 at 1:00 am

    I think your best bet is to implement a list item event receiver. You can tap into the ItemAdding, ItemUpdating, and ItemFileMoving events to either sanitize the URL to a shorter length, or throw an error. The item event receiver is foolproof, as it runs on the server regardless of the client, be it Office, Windows Explorer, SOAP, or the Web UI.

    A receiver can be associated with a content type or individual lists. If you associate with a content type, and you choose Item as your content type, then voila, it’s universal. If you want to force it across all sites and site collections, take a look at feature staplers. The idea is that you activate your event receiver feature on all your existing sites, and the stapler feature will activate it for you on all future sites. If you make the feature a hidden feature, your users won’t be able to turn it off.

    If you really want to go all out, you could customize the forms used to create new pages with a little javascript validation, or just a MaxLength on the text box; however, I prefer to avoid customizing system files.

    Good luck!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a data tables with this type of setup. Table A AID AName
Is there a dev aid that can simulate Windows AD on a non-domain machine,
I have following entities A_Entity ----------- AId AB_Entity ----------- AId BId B_Entity ----------- BId
So I have an iPhone app which should aid the user to find a
I am trying to aid another programmer with a page called Default.aspx with a
I guess I'm really after an aid to help people who forget, Cruise Control
Is there a way to aid gmail in making threads? We are currently using
I am developing a system as an aid to musicians performing transcription. The aim
I'd like to use a Regex parser to aid in some string processing in
At work we write a small to moderate amount of scripts to aid us

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.