regionhalland/region-halland-plugin-acf-page-ingress

在页面顶部创建一个文本区域,用于放置入口文本

v1.10.0 2022-11-24 12:15 UTC

This package is not auto-updated.

Last update: 2024-09-27 06:05:36 UTC


README

如何使用Region Hallands插件"RhAcfPageIngress"

以下是如何使用插件"RhAcfPageIngress"的说明。

使用范围

此插件在页面顶部创建一个文本区域,用于放置入口文本

许可模型

此插件使用GPL-3.0许可模型。您可以通过随附的文件了解更多关于此许可模型的信息

LICENSE (https://regionhalland.visualstudio.com/public.RhWpPlugIns/_git/RhAcfPageIngress?path=%2FLICENSE&version=GBmaster)

安装和激活

A) Hämta pluginen via Git eller läs in det med Composer
B) Installera Region Hallands plugin i Wordpress plugin folder
C) Aktivera pluginet inifrån Wordpress admin

通过Git获取插件

git clone https://regionhalland.visualstudio.com/public.RhWpPlugIns/_git/RhAcfPageIngress

通过composer导入插件

以下这两部分需要您将其添加到composer文件中

Repositories = 插件存储的位置,在本例中为github

"repositories": [
  {
    "type": "vcs",
    "url": "https://regionhalland.visualstudio.com/public.RhWpPlugIns/_git/RhAcfPageIngress"
  },
],

Require = 指定您希望使用的插件版本,在本例中为1.0.0

注意!请确保您下载的是最新版本。

"require": {
  "regionhalland/region-halland-acf-page-ingress": "1.0.0"
},

通过"Blade"在页面上显示入口文本

<div>
  {{ get_region_halland_acf_page_ingress() }}
</div>

通过"Blade"在页面上显示导航文本

注意!在导航中,您还需要指定要显示的帖子的ID

<div>
  {{ get_region_halland_acf_page_navigation_text(116) }}
</div>

版本历史

1.10.0

  • 检查是否在页面上,然后再提取页面名称

1.9.0

  • 添加了简称和导航

1.8.0

  • 删除了不再需要的ingress.js

1.7.0

  • 重大更改:简称(field_1000118 / name_1000119)已移动到RhAcfPageMenuText

1.6.1

  • 为ACF组添加了标题名称

1.6.0

  • 修复了代码中的错误

1.5.0

  • 添加了通过Packagist进行发布的管道

1.4.0

  • 更新了composer名称

1.3.0

  • 附加了许可模型文件

1.2.0

  • 更新了许可模型信息
  • 更新了到repo的链接

1.1.2

  • 为入口文本添加了ID

1.1.1

  • 为导航文本添加了ID

1.1.0

  • 为导航文本添加了一个额外的列

1.0.0

  • 第一个版本