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
Hi,
Is it possible to set image name in alt textbox field by default on the Media Picker?
File: /Umbraco/Js/umbraco.controller.js
Line: 3414 (Umbraco v.7.4.2, if not same in your version, search.)
Add this line:
$scope.target.altText = image.name;
Code:
Result:
Remember to restart application or change something in the web.config if changes does´nt show.
Hi Dennis,
what will happen if you upgrade to a new version of umbraco? Will this rule be removed again?
/Michael
Hi Michael.
Yes, it will. You'll have to remember to add this line again.
I have add below line in /Umbraco/Js/umbraco.controller.js
Umbraco Version 7.3.0
Also restart application & make changes in webconfig file but still it's not working
Please help
Hi Bhavesh
Also ensure to increase client depency version number in /Config/ClientDependency.config
<clientDependency version="1" fileDependencyExtensions=".js,.css" loggerType="Umbraco.Web.UI.CdfLogger, umbraco">
Whatever number it has in version attribute, then increase it at least by 1. Furthermore you should also clear browser cache.
If you use Chrome you can install this extension to make it easier to clear the cache (on client side). https://chrome.google.com/webstore/detail/clear-cache/cppjkneekbjaeellbfkmgnhonkkjfpdn
/Bjarne
Thank you so much..
it's working now by increase version.........
You´re welcome....
Hi Bhavesh.
Add this line:1251 (Umbraco 7.3.0) to:
And yes, bumb de clientdependancy version number. Worked for me on 7.3.0
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Set image name in alt textbox field by default
Hi,
Is it possible to set image name in alt textbox field by default on the Media Picker?
File: /Umbraco/Js/umbraco.controller.js
Line: 3414 (Umbraco v.7.4.2, if not same in your version, search.)
Add this line:
Code:
Result:
Remember to restart application or change something in the web.config if changes does´nt show.
Hi Dennis,
what will happen if you upgrade to a new version of umbraco? Will this rule be removed again?
/Michael
Hi Michael.
Yes, it will. You'll have to remember to add this line again.
Hi Dennis,
I have add below line in /Umbraco/Js/umbraco.controller.js
$scope.target.altText = image.name;
Umbraco Version 7.3.0
Also restart application & make changes in webconfig file but still it's not working
Please help
Hi Bhavesh
Also ensure to increase client depency version number in /Config/ClientDependency.config
Whatever number it has in version attribute, then increase it at least by 1. Furthermore you should also clear browser cache.
If you use Chrome you can install this extension to make it easier to clear the cache (on client side). https://chrome.google.com/webstore/detail/clear-cache/cppjkneekbjaeellbfkmgnhonkkjfpdn
/Bjarne
Thank you so much..
it's working now by increase version.........
You´re welcome....
Hi Bhavesh.
Add this line:1251 (Umbraco 7.3.0) to:
And yes, bumb de clientdependancy version number. Worked for me on 7.3.0
is working on a reply...