Is there any way you can apply some form of styling (html, css, simple line breaks, anything) to the description text of a property on a document type?
You can style the description in a css called style.css. It's found in the /umbraco_client/propertypane-folder. As default the description is formatted in a <small>-tag. You could style this, if you want to.
Otherwise, try installing Firebug, and inspect the element in the backend.
Thanks, I think I was a bit unclear in my question, sorry about that.
I actually wan't to make line breaks in the desciption text, whether they are newline or html breaks does't matter. But this by default isn't allowed, and I would like to know if there's any way around this?
I am having the same problem and at this stage have not found a way around it.
However, the first solution recommended here is a work around. Using the Firefox extension Firebug, you can 'inspect' the HTML element in question, which should give you /umbraco_client/propertypane/style.css -> .propertypane small.
You can then use the CSS attribute white-space: pre-wrap; to display the text how you entered it.
adding a soft break (shift+enter) in the description text of a property (and saving) will give you a carriage return. But you'll only see it if you manually edit your /umbraco_client/propertypane/style.css to include white-space:pre. Any particular reason why line breaks in the description is a must for you?
I agree - being able to have line-break in the description field would be a very nice thing to have.
In response to the question above (@wolulcmit - why is it a must?)
We use the description field to erm describe properties to users (most of ours are very non tech people) so that little bit of description is really useful for them. However the very nature of the internet is that people scan read text, so its really handy if you can have line breaks as it makes the block of text easier to digest.
A quick note to Kims post on finding the properpane style.css.
I wanted to make the description text more visible to the user. It took a while banging my head against the wall in frustration about why the damn thing wouldn't update the syle.css
Solution: in the config/clientdependency.config you just have to change the version number fra 1 to 2 to force the update.
You can add line breaks to the property descriptions when in the default document type view.
Once you have added the property and saved, when you return to your tab view of the properties you can edit the description directly from this page without having to edit the property itself.
Styling "description" for document type property
Hi All
Is there any way you can apply some form of styling (html, css, simple line breaks, anything) to the description text of a property on a document type?
Regards
You can style the description in a css called style.css. It's found in the /umbraco_client/propertypane-folder. As default the description is formatted in a <small>-tag. You could style this, if you want to.
Otherwise, try installing Firebug, and inspect the element in the backend.
Hope this makes sense.
/Kim A
Hi
Thanks, I think I was a bit unclear in my question, sorry about that.
I actually wan't to make line breaks in the desciption text, whether they are newline or html breaks does't matter. But this by default isn't allowed, and I would like to know if there's any way around this?
Regards
I am having the same problem and at this stage have not found a way around it.
However, the first solution recommended here is a work around. Using the Firefox extension Firebug, you can 'inspect' the HTML element in question, which should give you /umbraco_client/propertypane/style.css -> .propertypane small.
You can then use the CSS attribute white-space: pre-wrap; to display the text how you entered it.
http://www.w3schools.com/css/pr_text_white-space.asp
Hi, I want to advice to you one site which have the helpful information
Info is written simply and clearly , the key moments are allocated.
adding a soft break (shift+enter) in the description text of a property (and saving) will give you a carriage return. But you'll only see it if you manually edit your /umbraco_client/propertypane/style.css to include white-space:pre. Any particular reason why line breaks in the description is a must for you?
1+
I agree - being able to have line-break in the description field would be a very nice thing to have.
In response to the question above (@wolulcmit - why is it a must?)
We use the description field to erm describe properties to users (most of ours are very non tech people) so that little bit of description is really useful for them. However the very nature of the internet is that people scan read text, so its really handy if you can have line breaks as it makes the block of text easier to digest.
/Lau
I've made a workitem for this: http://umbraco.codeplex.com/WorkItem/View.aspx?WorkItemId=26984. Hope this feature will be added in a new release.
Great feedback - of course this ought to work. I'll add support for line breaks in 4.1
(and added to 4.0.4 too. It should be out anytime...)
Thank you Niels! Some of our customers will be really happy with this :).
A quick note to Kims post on finding the properpane style.css.
I wanted to make the description text more visible to the user. It took a while banging my head against the wall in frustration about why the damn thing wouldn't update the syle.css
Solution: in the config/clientdependency.config you just have to change the version number fra 1 to 2 to force the update.
Hope this might help others :-)
You can add line breaks to the property descriptions when in the default document type view.
Once you have added the property and saved, when you return to your tab view of the properties you can edit the description directly from this page without having to edit the property itself.
is working on a reply...