Add editable links to any DataObject

Installs: 34

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 2

Open Issues: 6

Type:silverstripe-vendormodule

6.0.2 2018-05-09 04:43 UTC

This package is auto-updated.

Last update: 2024-11-27 07:42:10 UTC


README

Build Status Scrutinizer Code Quality Code Coverage Build Status codecov.io

Latest Stable Version Latest Unstable Version Total Downloads License Monthly Downloads Daily Downloads

Dependency Status Reference Status

codecov.io

Maintainers

Introduction

This module provides a facility for adding and editing links on any DataObject. It could be used for example in providing related links on a blog article.

Installation

composer require "weboftalent/links"

##Usage

Model Admin

Links folders and links can be edited in the admin area under /admin/linksfolders - each folder has a slug (so that it can be referenced from templates) and a tab of links. One can provide either internal (default) or external links.

Links Extension

A links tab can be added to any object using the LinksExtension class

Templates

<ul>
<% loop $getLinksFolder('header') %>
	<li><a href="$URL">$Title</a></li>
<% end_loop %>
</ul>

Requirements

  • SilverStripe 4., for 3. append :~5 to the above composer command.