Commit fc3a5774 authored by Walter Velasquez's avatar Walter Velasquez Committed by Damien McKenna
Browse files

Issue #2563655 by DamienMcKenna, waldomero: Absorb Metatag Routes module to...

Issue #2563655 by DamienMcKenna, waldomero: Absorb Metatag Routes module to allow per-path/route configurations.
parent caec44a8
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -50,6 +50,8 @@ Metatag 8.x-1.x-dev, 2022-xx-xx
  "author" tag to HTML 5.2 spec, deprecate Google+ Author tag.
#3280745 by DamienMcKenna, Anybody: Trimming should use multibyte functions.
#3112509 by DamienMcKenna: Fix regression in Google+ tests.
#2563655 by DamienMcKenna, waldomero: Absorb Metatag Routes module to allow
  per-path/route configurations.


Metatag 8.x-1.19, 2022-01-06
+3 −1
Original line number Diff line number Diff line
@@ -21,7 +21,6 @@ Metatag for Drupal 9 requires the following:
* [Token](https://www.drupal.org/project/token): Provides a popup browser to
  see the available tokens for use in meta tag fields.


## Features

The primary features include:
@@ -36,6 +35,9 @@ The primary features include:
  tags, site verification tags and more; all but the basic meta tags are kept
  in separate submodules.

* Configuration can be added for individual paths using the Metatag Custom
  Routes submodule.

* The fifteen Dublin Core Basic Element Set 1.1 meta tags may be added by
  enabling the "Metatag: Dublin Core" submodule.

+25 −0
Original line number Diff line number Diff line
# Metatag Routes

The Metatag Routes module allows a user to configure metatags for custom
controllers generated by code.

It uses the metatags entity to store a configuration for any route using the
metatags administration.

The module adds a button in the default metatag dashboard page giving the user
the option to enter the route path and validates if the path has a defined
route, the route is not administrative and the route is "metatag-able".

## Configuration

1. Navigate to Administration > Extend and enable the module.
2. Navigate to Administration > Configuration > Search and Metadata >
   Metatag to configure metatags.
3. Select "Add meta tag for custom route" and enter the path for which you
   want to add the metatags.
4. Submit.

## Credits / contact

Written by [Walter Velasquez (waldomero)](https://www.drupal.org/u/waldomero)
and sponsored by [Globant](https://www.drupal.org/globant).
+6 −0
Original line number Diff line number Diff line
name: 'Metatag Custom Routes (Paths)'
type: module
description: Allows assigning meta tags to be used on custom routes, equivalent to customn paths.
core_version_requirement: ^9
dependencies:
  - metatag:metatag
+6 −0
Original line number Diff line number Diff line
metatag_routes.create_custom_metatag.action:
  route_name: metatag_routes.create
  title: 'Add meta tag for custom route'
  weight: 1
  appears_on:
    - entity.metatag_defaults.collection
Loading