regionhalland/region-halland-plugin-last-visited-page

设置和获取最新访问页面

安装: 87

依赖项: 1

建议者: 0

安全: 0

类型:wordpress-plugin

v1.3.1 2020-08-04 08:54 UTC

This package is auto-updated.

Last update: 2024-09-04 18:32:09 UTC


README

如何使用Region Hallands插件"RhLastVisitedPage"

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

用途

此插件设置最新访问页面

许可证模型

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

LICENSE (https://regionhalland.visualstudio.com/public.RhWpPlugIns/_git/RhLastVisitedPage?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 https://regionhalland.visualstudio.com/public.RhWpPlugIns/_git/RhLastVisitedPage

通过composer导入插件

以下两个部分需要添加到您的composer文件中

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

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

Require = 指定要使用的插件版本,在此例中为1.0.0

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

"require": {
  "regionhalland/region-halland-plugin-last-visited-page": "1.0.0"
},

包含设置当前分类的功能

注意!创建一个app-page.blade.php并使用该布局替换page.blade.php

<body)>
    @php(set_region_halland_last_visited_page())
    osv...
</body)>

获取最新访问页面的ID

{{ get_region_halland_last_visited_page() }}

版本历史

1.3.1

  • 调整了1.3.0版本的逻辑,即如果存在查询字符串,则取消设置会话

1.3.0

  • 如果url包含至少一个查询字符串,则删除分类会话

1.2.0

  • 重写了首次访问页面时的逻辑

1.1.0

  • 添加了通过Packagist发布的功能管道

1.0.0

  • 第一个版本