0

AboutBox and MetaData Description

Hi,

I'm working on developing a Yahoo! TV Widget, but I'm a bit confused about the "description" meta-data and how it appears in the AboutBox view.
The Yahoo! Widget Engine acceptance criteria (here) says the description should be about 2-3 sentences long, which makes sense.

However, the AboutBox view only shows the first 40-or-so characters of the description, and cuts off the rest with ellipses.
Since this view is created almost entirely by the KONtx.views.AboutBox class which pulls the meta-data straight from widget.xml, it doesn't appear that there's any way to show more than 40 characters of the description in this view.

Should the description be less than 40 characters?
Is there any way to make the description text carry over to the next line instead of cutting it off at 40 characters?
Was it intended that the description be cut off with ellipses?

Thanks for your help,

-- Ideashaker

I've attached a screen-shot of our widget's about page as reference to the problem I'm talking about:

by
7 Replies
  • Unfortunately, this is a bug that'll have to be addressed in the framework.

    For now, the description will need to be shorter to display without ellipsis.
    0
  • Rob's right, but you could extend from the AboutBoxView class and fix the issue with text wrapping on the description. If this is something you are interested in doing, let us know and we can provide sample code.

    -Jeremy
    0
  • QUOTE (jeremy.johnstone @ Aug 16 2010, 09:00 AM) <{POST_SNAPBACK}>
    Rob's right, but you could extend from the AboutBoxView class and fix the issue with text wrapping on the description. If this is something you are interested in doing, let us know and we can provide sample code.

    -Jeremy


    I am very interested.

    THX
    0
  • Hello Everyone,

    I know Jeremy has left for LinkedIn, but is there still anyone at yahoo who can give an example of how to override the  KONtx.views.AboutBox base class per this post?

    Our widget got bumped out of QA because yahoo's KONtx.views.AboutBox class truncates the name and description values present in the widget.xml file.

    So we want to either override the base class' font size, text wrapping, or the actual name value that is pulled from the widget.xml

    All the docs point to using this class for the mandatory About view when pushing the 'green button'.

    However, this post acknowledged this is a bug. So we would like to know what the workaround is.

    -Daniel


    QUOTE (Jeremy Johnstone @ 16 Aug 2010 10:00 AM) Rob's right, but you could extend from the AboutBoxView class and fix the issue with text wrapping on the description. If this is something you are interested in doing, let us know and we can provide sample code.

    -Jeremy
    0
  • You may override the styles of the name and description in the about box by adding the following in your widget.

    Theme.storage.add('AboutBoxView.metadataName', {
        styles: {
            width: Theme.keys.sidebar.width - 10,
            truncation: "end",
            hOffset: 5,
            vOffset: 67,
            fontSize: 26,
            fontFamily: Theme.fonts.light,
            color: 'white',
            KonShadow: '0px -1px black'
        }
        
    });

    Theme.storage.add('AboutBoxView.metadataDescription', {
        styles: {
            truncation: 'end',
            width: Theme.keys.sidebar.width - 10,
            hOffset: 5,
            fontSize: 14,
            fontFamily: Theme.fonts.regular,
            fontWeight: 'bold',
            color: '#FFFFFF',
            KonShadow: "0px -1px black"
        }

    });

    You can also change many other styles by referring to ~/TVWidgets/Konfabulator-Latest/data/Overlay/Script/Framework/Themes/theme.js, find the style you want to change and include that change in your particular widget.

    Thanks,
    Vivek
    0
  • You may override the styles of the name and description in the about box by adding the following in your widget.  Theme.storage.add('AboutBoxView.metadataName', {     styles: { width: Theme.keys.sidebar.width - 10, truncation: "end", hOffset: 5, vOffset: 67, fontSize: 26, fontFamily: Theme.fonts.light, color: 'white', KonShadow: '0px -1px black'     }      }); Theme.storage.add('AboutBoxView.metadataDescription', {     styles: { truncation: 'end', width: Theme.keys.sidebar.width - 10, hOffset: 5, fontSize: 14, fontFamily: Theme.fonts.regular, fontWeight: 'bold', color: '#FFFFFF', KonShadow: "0px -1px black"     }
    }); You can also change many other styles by referring to ~/TVWidgets/Konfabulator-Latest/data/Overlay/Script/Framework/Themes/theme.js, find the style you want to change and include that change in your particular widget.
    Thanks, Vivek
    0
  • You are welcome Daniel. Hope you enjoy working with Javascript and Yahoo connected TV platform :).
    0

Recent Posts

in Design / Interaction - Yahoo! TV Widgets