[TYPO3-german] ext. news detail view mit ajax

Matthias Eberlein skydivematy at gmail.com
Fri Sep 13 02:36:19 CEST 2013


Folgendes habe ich geändert und so bekomme ich schon mal als result die deteil view des articles in mein <div>.

setup/

AJAX_news = PAGE
AJAX_news {
  typeNum = 555
  config {
    disableAllHeaderCode = 1
    xhtml_cleaning = 0
    admPanel = 0
    debug = 0
    no_cache = 1
  }
  10 = USER
  10 {
    userFunc = tx_extbase_core_bootstrap->run
    extensionName = News
    pluginName = Pi1
    switchableControllerActions {
      News {
        1 = detail
      }
    }
    settings < plugin.tx_news.settings
    settings {
      startingpoint = 11
    }
  }
}

js/

    $('a.more').live('click', function() {
        var $this = $(this);
        var url = $this.attr('href');
	$.ajax({
	    url: url,
	    success: function(data) {
		$("#article").html(data);
	    }
	});
        return false;
    });

fluid template news/

<a class="more" href="{n:link(newsItem:newsItem,settings:settings,uriOnly:1)}&type=555">Read more</a> 



gruß
matthias


More information about the TYPO3-german mailing list