symbiote-library/silverstripe-pagejax
Composer 安装命令:
composer require symbiote-library/silverstripe-pagejax
包简介
Adds partial page loading using ajax
关键字:
README 文档
README
IMPORTANT
This module is no longer actively maintained, however, if you're interested in adopting it, please let us know!
Pagejax module for SilverStripe
Adds partial page loading using ajax.
Installation
Follow the standard SilverStripe module installation procedure
Requirements
You must have jquery included in your page
Usage
Cuurently we need to modify Page_Controller and add the following method
public function getViewer($action) { $viewer = parent::getViewer($action); $this->extend('updateViewer', $action, $viewer); return $viewer; }
Modify your main Page.ss template and change
$Layout
to
<div class="pagejax-container">$Layout</div>
Then, any link you want to loaded internally needs to have the pagejax class applied, ie
<a href="some/internal/page" class="pagejax">Internal page</a>
To customise the way the page transitions in and out, you can bind to the window.pagejaxStart and window.pagejaxComplete events, eg
$(window).bind('pagejaxStart', function () { });
To change the page title on each refresh, specify an ajaxTitle() method on
your Page_Controller class; otherwise, the page title will not be chanaged.
The module does take into account CSS and JS added using Requirements:: by parsing out relevant headers
symbiote-library/silverstripe-pagejax 适用场景与选型建议
symbiote-library/silverstripe-pagejax 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 8 次下载、GitHub Stars 达 7, 最近一次更新时间为 2017 年 06 月 30 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「ajax」 「silverstripe」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 symbiote-library/silverstripe-pagejax 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 symbiote-library/silverstripe-pagejax 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 symbiote-library/silverstripe-pagejax 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Selenium4 (WebDriver) driver for Mink framework
laravel middleware to allow ajax only calls
Sitemap crawler/generator. For the given URL it will return sitemap XML file with URLs and images.
Analytics chooser extensions for site settings.
This is a laravel 4 package for the server and client side of datatables at http://datatables.net/
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2017-06-30