我要像做包括JavaScript变量ExpressionEngine路径标签
$('a.filter-link').click(function(e) {
e.preventDefault();
var that = $(this),
categoryId = that.data('id'),
categoryName = that.data('catname');
$('div.results').load("{path='ums/performances-results/<I WANT var categoryName here>'}", {category: categoryId, ajax: true});
});
我如何变呢?这是在模板页面内联,所以我知道{path ='ums/performance-results'}有效,但我需要这个依赖于last_segment变量。我只想渲染一个特定的模板,因此在过滤结果集时不必刷新整个页面。谢谢。
我们可以看到用户点击的链接是什么样子。另外,是否有一个原因是你将这个'重新命名为'那个'? – 2012-03-17 02:12:21