stoffelio/statamic-live-preview-tag 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

stoffelio/statamic-live-preview-tag

Composer 安装命令:

composer require stoffelio/statamic-live-preview-tag

包简介

Adds Antlers tag to show or hide parts of templates in live preview mode.

README 文档

README

Adds an Antlers tag to easily show or hide parts of your template when viewing the page in Statamic's live preview mode.

Purpose

Allows you to exclude things like tracking scripts or even parts of your content in live view.

How to Install

You can search for this addon in the Tools > Addons section of the Statamic control panel and click install, or run the following command from your project root:

composer require stoffelio/statamic-live-preview-tag

How to Use

Simply check if the request is a live preview using the tag:

{{ if {is_live_preview} }}
    this will be shown only in live preview
{{ else }}
    this will be hidden in live preview
{{ /if }}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-02-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固