Try our conversational search powered by Generative AI!

Required "name" property gives bad editor experience

Vote:
 

Hi

We have set the "Name" property as required on all pages and blocks in our solution. The auto-generated names are not very useful, so we found forcing the user to give a relevant name makes the content easier to edit.

It works, but has the bad side effect that editor mode now show the "name" property twice:

  1. In the default position (upper gray area)
  2. In the tab below (white background)

And, what is worse: editing the "name" in position 1 now has no effect. It is always overriden by the value in position 2. This is very confusing for the editors. Is there any way that we can:

  1. Hide the "name" in position 1?
  2. Change the label of "name" in position 1, to say e.g., "Change name via the property below"?

Setting values via language XML files, only seem to have effect on the property in position 2.

#83118
Mar 26, 2014 10:05
Vote:
 

Sorry, might be a silly question, but why don't you just name your Name differently? Normally, we have something like a Heading. Why is this not an option for you? (You might translate it in language files anyhow then)

#83133
Mar 26, 2014 12:48
Vote:
 

Hi Marija

We want the Name property to be filled in, since this is shown, e.g., when blocks are listed in content areas. We are not displaying the "name" property to end users, just using it to make the content more structured for the editors.

 

Regards

Thomas

#83148
Mar 26, 2014 14:46
Vote:
 

Hey Thomas, now I get it, can you try this out:

    [EditorDescriptorRegistration(TargetType = typeof(string))]
    public class HideNameEditorDescriptor : EditorDescriptor
    {
        public override void ModifyMetadata(
           ExtendedMetadata metadata,
           IEnumerable<Attribute> attributes)
        {
            base.ModifyMetadata(metadata, attributes);
            if (metadata.PropertyName == "icontent_name")
            {
                metadata.ShowForEdit = false;
            }
        }
    }

    

#83150
Mar 26, 2014 14:56
Vote:
 

Hi Marija!

Sorry for the late reply - I was busy with other stuff for the last weeks.

Your solution works just great. This will remove a lot of frustration from our editors, thank you!

 

Best regards

Thomas

#85035
Apr 11, 2014 13:37
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.