silverstripe-pagejax:使用ajax添加部分页面加载

时间:2021-05-14 23:58:01
【文件属性】:
文件名称:silverstripe-pagejax:使用ajax添加部分页面加载
文件大小:19KB
文件格式:ZIP
更新时间:2021-05-14 23:58:01
JavaScript 重要的 该模块已不再积极维护,但是,如果您有兴趣采用它,请告诉我们! 用于SilverStripe的Pagejax模块 使用ajax添加部分页面加载。 安装 遵循标准的SilverStripe模块 要求 您的页面中必须包含jquery 用法 当前,我们需要修改Page_Controller并添加以下方法 public function getViewer ( $ action ) { $ viewer = parent :: getViewer ( $ action ); $ this -> extend ( 'updateViewer' , $ action , $ viewer ); return $ viewer ; } 修改您的主要Page.ss模板并进行更改 $Layout 至 < div class =" pagejax-
【文件预览】:
silverstripe-pagejax-master
----code-of-conduct.md(194B)
----templates()
--------AjaxPage.ss(7B)
----code()
--------PagejaxExtension.php(1KB)
----LICENSE(1KB)
----composer.json(664B)
----javascript()
--------jquery.pagejax.js(3KB)
--------jquery.history.1.8.js(15KB)
--------jquery.history.js(21KB)
----_config.php(108B)
----_config()
--------config.yml(53B)
----README.md(1KB)
----.scrutinizer.yml(2KB)
----.editorconfig(438B)

网友评论