定制 dft/silverstripe-call-to-actions 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dft/silverstripe-call-to-actions

最新稳定版本:1.0.1

Composer 安装命令:

composer require dft/silverstripe-call-to-actions

包简介

A Silverstripe module allowing you to create call to actions and render them using custom templates

README 文档

README

A SilverStripe module that allows creation of custom call to actions via SiteConfig and allows them to be rendered in templates using unique "slugs"

Installation Instructions

The prefered way to install this module is via composer:

composer require dft/silverstripe-calltoactions

Usage

Once the module is downloaded and installed, you can create call to actions via:

http://www.yourwebsite.com/admin/settings

And then clicking on the "CTA" tab.

You will then need to create a MenuHolder (or use one of the installed defaults).

By default this module includes two CTA types:

  • Button: A single linkable button that can be added to templates
  • Row: A full width row with short html content and a linkable button

Templates

This module exposes $GetCTA("slug") into all controllers and can be called anywhere from within a controller.

Each CallToAction uses forTemplate to handle rendering their data, so you could also link CallToActions to your own pages or objects and load them via a loop/call etc.

统计信息

  • 总下载量: 100
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2024-07-08