Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

"undefined" displayed instead of alt tag text


Go to End


3 Posts   1681 Views

Avatar
Phill

Community Member, 81 Posts

13 August 2008 at 1:55am

Hi

Im having a problem with SS adding title="undefined" to all images entered in the cms and as a result of this when the user hovers there mouse over the image instead of the alt text being dislpayed the text "undefined" (contained in the title attribute) instead. Does anyone know a solution for this problem.

Thanks

Avatar
Phalkunz

Community Member, 69 Posts

13 August 2008 at 11:41am

Do you have an extra field in the page type for that title/alt? or you just use $Title?

Avatar
Willr

Forum Moderator, 5523 Posts

13 August 2008 at 12:15pm

I think andy managed to get the fix for this into 2.2.2 a week or so ago - have a look at http://open.silverstripe.com/changeset?new=60033%40modules%2Fjsparty%2Fbranches%2F2.2%2Ftiny_mce_improvements.js&old=58624%40modules%2Fjsparty%2Fbranches%2F2.2%2Ftiny_mce_improvements.js for what you should do to make it work in your version.

This is will be part of 2.2.3 so when you upgrade you should have no problems