ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Publish form: url_title maxlength shorter than title

July 01, 2010 10:15am

Subscribe [2]
  • #1 / Jul 01, 2010 10:15am

    BackBeat Media

    76 posts

    <input dir="ltr" style="width:100%" type="text" name="title" id="title" value="" size="20" maxlength="100" class="input">
    <input dir="ltr" style="width:100%" type="text" name="url_title" id="url_title" value="" size="20" maxlength="75" class="input">

    EE 1.6.9
    Tested with Extensions Disabled

    liveUrlTitle() auto-generates a url_title longer than 75 characters.  When a user submits the form, the “validation error” is simply to focus on the url_title field.  This is too subtle and not clear to the user what they should do to fix the problem.

    Example:
    The title will be longer than 75 characters to demonstrate the bug by typing into the title field eh
    url_title field:
    the_title_will_be_longer_than_75_characters_to_demonstrate_the_bug_by_typing_into_the_title_field_eh

    Proposed Solutions:
    Display a message to the user such as “The URL Title field is preventing this form from submitting. Please reformat and try again.” on a url_title error.

    AND:

    (A) Set max length of url_title field to 100 characters. 

    OR (B) change liveUrlTitle to not update url_title if NewText length > 75 chars.

    OR (C) Sex max length of title field to 75 characters.  This is less than ideal as it doesn’t allow for long titles.

    [Mod Edit: Moved to the EE 2.0PB: Technical Support forum]

  • #2 / Jul 01, 2010 1:07pm

    BackBeat Media

    76 posts

    Mod Edit: Moved to the EE 2.0PB: Technical Support forum

    Not EE 2, EE 1.6.9

  • #3 / Jul 01, 2010 5:52pm

    Ingmar

    29245 posts

    I have moved this thread to the appropriate location. Can you drop this error in the bug tracker, linking back to this thread? We appreciate it, thanks.

  • #4 / Jul 01, 2010 5:56pm

    BackBeat Media

    76 posts

  • #5 / Jul 01, 2010 5:58pm

    Ingmar

    29245 posts

    Thank your for bringing this to our attention. Please don’t hesitate to post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases