Results 1 to 2 of 2

Thread: Linkify question

  1. #1
    Sencha User
    Join Date
    Aug 2012
    Vote Rating

    Default Unanswered: Linkify question

    I've been trying and googling for hours, and cannot find a solution. Perhaps you have a solution for me.

    I'm trying to linkify url's in my feed. My Twitter and blog posts always have links and I'd like them to be clickable.

    Ext.define('Gallery.view.Feed', {
        extend: 'Ext.navigation.View',
        xtype: 'feed',
        fullscreen: true,
        config: {
            title: 'Feed',
            iconCls: 'download',
            cls: 'feed',
            scrolable: true,
            items: [
                    xtype: 'nestedlist',
                    title: 'Feed-Me',
                    iconCls: 'star',
                    displayField: 'title',
                    store: {
                        type: 'tree',
                        fields: [
    'title', 'link', 'author', 'contentSnippet', 'content',
                            {name: 'leaf', defaultValue: true}
                        root: {
                            leaf: false
                        proxy: {
                            type: 'jsonp',
                            url: '',
                            reader: {
                                type: 'json',
                                rootProperty: 'responseData.feed.entries'
                    detailCard: {
                        xtype: 'panel',
                        scrollable: true,
                        styleHtmlContent: true
                    listeners: {
                        itemtap: function(nestedList, list, index, element, post) {

    I've seen examples of this when using a template. Is there any easy way to implement linkify without using a template? If not, what would be the best way to implement a linkified template here?


  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL
    Vote Rating


    Create your own model and specify the fields and use the convert config on the field. Within this convert method you can use the replace method on the string and use RegExp
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2

    Think my support is good? Get more personalized support via a support subscription.

    Need more help with your app? Hire Sencha Services

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts