承接 modrictin/statamic-public-preview 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

modrictin/statamic-public-preview

最新稳定版本:v1.0.1

Composer 安装命令:

composer require modrictin/statamic-public-preview

包简介

This is my package statamic-public-preview

README 文档

README

Version License

Big thanks to Links Der Isar company! They thought of this idea and I just implemented it.

Statamic Public Preview is a package that provides an action for generating public preview links for your Statamic websites. With this package, you can easily share a temporary preview of your site's content with clients, stakeholders, or team members without granting them full access.

This package is using additional table to store the preview links. It is not using the Statamic's native preview functionality. Because of this we are able to handle large amount of entries and collections.

Installation

To install the Statamic Public Preview package, follow these steps:

  1. Open your terminal or command prompt.
  2. Navigate to your Statamic project's root directory.
  3. Run the following command:
composer require modrictin/statamic-public-preview

This command will download and install the package and its dependencies into your Statamic project.

Configuration

The package allows you to customize the database connection, table name, and the expiration time for preview links. To modify these settings, follow the steps below:

  1. Open your terminal or command prompt.
  2. Navigate to your Statamic project's root directory.
  3. Run the following command to publish the configuration file:
php artisan vendor:publish --tag="public-preview-config"

This command will create a configuration file named public-preview.php in your project's config directory.

Open the public-preview.php file and modify the desired settings according to your requirements.

Usage

Go to collection list view, and open the Action dropdown menu for the entry for which you want to generate a public preview link. Click on the Generate Public Preview Link option. This will generate a public preview link for the entry and redirect you to it.

Contributing

Contributions are welcome! If you encounter any issues, have suggestions, or want to contribute enhancements or new features, please feel free to open an issue or submit a pull request on the GitHub repository.

License

The Statamic Public Preview package is open-source software licensed under the MIT license.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-07-12