In the UI, how can I add a description to the NAME field on the Peroperties tab (i.e.: the lighter-colored smaller text underneath the field name)? I want to put a little warning there that the URL will be changed if the value is changed.
I'm not sure if this is the best way but if you create a custom data type and add that to this document type. In this datatype you could inject some javascript do add your text.
There is probably a less "hacky" way to do this....
Where you add your property to the docType, there is a field called Description, under Validation, drop your comment in there and it will appear underneath the name tag for the field when viewed in the Content Area,
Hi Gary -- I think you missed my point, unfortunately. I am talking about the Name field which appears on the Poperties tab -- although this is exposed in the CMS, it does not appear in the field list in the docType -- lest someone remove an unquestionably required field. And since EVERY document type has the Name field, I'd prefer to bang this out once globally. Ideas? Besides the javascript idea, which I will do if I get no other replies?
Javascript or some C# code that ties to the umbracoPage.Load event will probably be your only options as this is hardcoded in the edit page.
One other idea is to look into the jesperEasyValues package. It allows you to place a field on your document as a normal property, but it synchs with the Name field on save. So you control the name from this field instead of the Properties tab, and of course since its a normal property you can add a description to it.
I'm totally cool with doing it using javascript, I just can't figure out where to put it! Do you have any tips on how exactly to tie into the umbracoPage.Load event? Where is that puppy firing/initialized?
If you want a global aspect, maybe you could add it to the form for the docType creation?
Have a look at Umbraco>Controls>ContentTypeControlNew.ascx, this would appear to be where the name field is generated, could your description be added to this?
But then again I have been known to get completely the wrong end of the stick before!
If you want an easy way to add some JS to the page, check out BackOffice Power Scripts, makes it super-simple with a .config file. If you want to do it via C#, take a look at the source for DocTypeFieldsets, which adds some controls to a page via the Init event (see InjectEditorControls.cs).
Adding a Description to the Page Name Field
In the UI, how can I add a description to the NAME field on the Peroperties tab (i.e.: the lighter-colored smaller text underneath the field name)? I want to put a little warning there that the URL will be changed if the value is changed.
Thanks in advance,
Garrett
I'm not sure if this is the best way but if you create a custom data type and add that to this document type. In this datatype you could inject some javascript do add your text.
There is probably a less "hacky" way to do this....
Hi Garrett
Where you add your property to the docType, there is a field called Description, under Validation, drop your comment in there and it will appear underneath the name tag for the field when viewed in the Content Area,
Hope that helps
Gary
Hi Gary -- I think you missed my point, unfortunately. I am talking about the Name field which appears on the Poperties tab -- although this is exposed in the CMS, it does not appear in the field list in the docType -- lest someone remove an unquestionably required field. And since EVERY document type has the Name field, I'd prefer to bang this out once globally. Ideas? Besides the javascript idea, which I will do if I get no other replies?
Thanks again,
Garrett
Javascript or some C# code that ties to the umbracoPage.Load event will probably be your only options as this is hardcoded in the edit page.
One other idea is to look into the jesperEasyValues package. It allows you to place a field on your document as a normal property, but it synchs with the Name field on save. So you control the name from this field instead of the Properties tab, and of course since its a normal property you can add a description to it.
-Tom
I'm totally cool with doing it using javascript, I just can't figure out where to put it! Do you have any tips on how exactly to tie into the umbracoPage.Load event? Where is that puppy firing/initialized?
Thanks again,
Garrett
Hi Garrett
If you want a global aspect, maybe you could add it to the form for the docType creation?
Have a look at Umbraco>Controls>ContentTypeControlNew.ascx, this would appear to be where the name field is generated, could your description be added to this?
But then again I have been known to get completely the wrong end of the stick before!
Best regards and apologies
Gary
Making changes in this file doesn't appear to change anything. Does this need to be compiled in some way? Tom, where does the umbracoPage.Load occur?
Thanks,
Garrett
Hi Garrett,
If you want an easy way to add some JS to the page, check out BackOffice Power Scripts, makes it super-simple with a .config file. If you want to do it via C#, take a look at the source for DocTypeFieldsets, which adds some controls to a page via the Init event (see InjectEditorControls.cs).
-Tom
These are both excellent options -- thank you for getting back to me Tom.
//Garrett
is working on a reply...