weboftalent/prevnextsibling
Composer 安装命令:
composer require weboftalent/prevnextsibling
包简介
Helper method and template to allow previous and next sibling integration easily
README 文档
README
Maintainers
- Gordon Anderson (Nickname: nontgor) gordon.b.anderson@gmail.com
Introduction
This module provides convenience methods for previous and next siblings of a common parent. It is used for paging through a list of children items.
Installation
composer require "weboftalent/prev-next-sibling"
Usage
Previous Sibling
In a template call $PreviousSibling
<% with $PreviousSibling %><a href="$Link">$Title</a><% end_with %>
If there is no previous sibling the result will be blank and nothing will render.
NextSibling
In a template call $NextSibling
<% with $NextSibling %><a href="$Link">$Title</a><% end_with %>
If there is no next sibling the result will be blank and nothing will render.
##Requirements
- SilverStripe 4
统计信息
- 总下载量: 19
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2016-01-20