Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/black-lamp/yii2-seo-breadcrumbs
Widget provides SEO schema for Breadcrumbs widget in Yii2 Framework
https://github.com/black-lamp/yii2-seo-breadcrumbs
black-lamp php seo seo-optimization yii-extension yii2
Last synced: 3 days ago
JSON representation
Widget provides SEO schema for Breadcrumbs widget in Yii2 Framework
- Host: GitHub
- URL: https://github.com/black-lamp/yii2-seo-breadcrumbs
- Owner: black-lamp
- License: bsd-3-clause
- Created: 2016-12-14T14:30:10.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-06-22T11:17:09.000Z (over 5 years ago)
- Last Synced: 2024-09-14T14:19:23.969Z (2 months ago)
- Topics: black-lamp, php, seo, seo-optimization, yii-extension, yii2
- Language: PHP
- Homepage:
- Size: 23.4 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
SEO breadcrumbs widget for Yii2
===============================
Widget provides [SEO schema](http://schema.org/BreadcrumbList) for Breadcrumbs widget in Yii2 Framework[![Build Status](https://travis-ci.org/black-lamp/yii2-seo-breadcrumbs.svg?branch=master)](https://travis-ci.org/black-lamp/yii2-seo-breadcrumbs)
[![Latest Stable Version](https://poser.pugx.org/black-lamp/yii2-seo-breadcrumbs/version)](https://packagist.org/packages/black-lamp/yii2-seo-breadcrumbs)
[![Latest Unstable Version](https://poser.pugx.org/black-lamp/yii2-seo-breadcrumbs/v/unstable)](//packagist.org/packages/black-lamp/yii2-seo-breadcrumbs)
[![License](https://poser.pugx.org/black-lamp/yii2-seo-breadcrumbs/license)](https://packagist.org/packages/black-lamp/yii2-seo-breadcrumbs)Installation
------------
Run command
```
composer require black-lamp/yii2-seo-breadcrumbs
```
or add
```json
"black-lamp/yii2-seo-breadcrumbs": "^1.1.0"
```
to the require section of your composer.json.Using
-----Call widget in view layout
```php
= \bl\seo\SeoBreadcrumbs::widget([
'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
]) ?>
```
in view file just add a item or items to params array
```php
$this->params['breadcrumbs'][] = 'Contacts';
```
or call the widget with configuration array in view file
```php
= \bl\seo\SeoBreadcrumbs::widget([
'homeLink' => [
'label' => 'Home',
'url' => \yii\helpers\Url::toRoute(['/']),
],
'links' => 'Contacts',
]) ?>
```