Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
When creating a new node there is the placeholder text of "Enter a name...".
Wondering if it is possible to override this somehow / someway ?
And if it is possible, can it then be specific to a specific document type ?
The reason for asking is I would like to have some more helpful text be displayed, e.g. "Enter a name - this will be the promotion name in the query string"
The alternative is to simply add a label at the top of the properties on the doc type with the helper information.
There are a few options, but have a look first at the package called 'Contentment'.
It contains lots of really good additional property editor functionality, one of which is a textbox that will support HTML5 attributes such as the placeholder text:
In term of adding notes above the properties, then contentment does have an enhanced form of the label property editor, that allows you to display text in a panel just above the property editor...
... and I am biased, but there is also the Editor Notes package:
that allows for collapsible notes, or to have the information open up in a slide out panel.
Finally, whenever a page is loaded to edit in the Umbraco backoffice - just before it is displayed the EditorModelEventManager fires a SendingContentModel event, that you can subscribe to handle in code.
This gives you reference to all the properties that are about to be displayed and their values, and the current logged in user, so you can write code to update things like labels or set default values.
But hopefully all you need for your description above is 'Contentment'
Thanks Marc for your extremely detailed and thorough response - truly appreciate the time taken.
I will have a good browse at the options detailed, but like the idea of the EditorModelEventManager.
In looking at your suggestions tho I was impressed with both packages developed - such an awesome community with highly skilled people contributing - nice one.
I second all of Marc's suggestions — I have one additional proposal, as I get the gist that you're seeking to specifically change the placeholder in the "Umbraco Name" field:
If you have a look in the ~/Config/Lang/ folder, you'll see a bunch of XML files - open en-US.user.xml and add your override for any specific key, like this:
<key alias="entername">Name your document here...</key>
There's a page here on Our about localizing misc. parts of Umbraco.
Please note that you won't be able to customize this per document type this way though...
Hope that helps,
Thanks Chriztian - I did not know these settings existed, so whilst my requirement is too specific in this case, definitely worth a look-see so as to be aware in the future if needed.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted