过滤掉网页内容与AJAX在Sitecore的 [英] Filtering out page content with AJAX in Sitecore

查看:118
本文介绍了过滤掉网页内容与AJAX在Sitecore的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Sitecore的一个页面,该页面显示客户的名单。有两个选择框,应该过滤掉用户不匹配的指定审核规定的形式。客户名单应通过AJAX每次用户刷新改变了形式或点击提交按钮,如果JS被禁用后的值之一。

I have a page in Sitecore that displays the list of clients. There's a form with two select boxes that should filter out clients not matching specified criterias. Clients list should be refreshed via AJAX everytime user changes one of the values in the form or after clicking Submit button if JS is disabled.

什么是建议的方法,我应该有这方面的工作在Sitecore的?我不知道Sitecore的一部分,我知道该怎么称呼AJAX方法/

What is the suggested approach I should take to have this working in Sitecore? I'm not sure about Sitecore part, I know how to call AJAX methods/

推荐答案

我找到了一个解决方案,感觉好一点,然后什么其他的在这里提出。我在Sitecore的创建一个新的装置,它创造了一个新的布局中,我只是增加了一个占位符。然后,我可以访问使用这种方法的所有网站内容。并指派一个URL参数 A = 1 ,使这一切param所的网址自动重定向到该设备。我不认为它可简单多了。

I found a solution that feels a bit better then what other have proposed here. I've created a new Device in Sitecore, created a new layout in it in which I just added one placeholder. Then I can access all site content using this method. And assigning a URL parameter a=1 makes all URLs with this param automatically redirect to this device. I don't think it can be made much simpler.

这篇关于过滤掉网页内容与AJAX在Sitecore的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆