weboftalent / links
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
Requires
- silverstripe/cms: ^4
This package is auto-updated.
Last update: 2024-11-27 07:42:10 UTC
README
Maintainers
- Gordon Anderson (Nickname: nontgor) gordon.b.anderson@gmail.com
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.