Download the PHP package ecwhim/module-canonical-url-graph-ql without Composer
On this page you can find all versions of the php package ecwhim/module-canonical-url-graph-ql. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package module-canonical-url-graph-ql
Canonical URL GraphQl module for Magento 2 by Ecwhim
This module provides support of Magento GraphQL for Magento 2 Canonical URL Extension by Ecwhim.
Installation
You can install the module in the following ways:
- Install the module using Composer via packagist.com.
- Download package from github.com.
Install the module using Composer via packagist.com
- Log in to your Magento server as, or switch to, the file system owner.
- Navigate to your Magento project directory.
-
Get the latest version of the module:
- Enable the module.
Download package from github.com
- Download the latest version of the package from github.
- Extract the package to the
<magento root directory>/app/code/Ecwhim/CanonicalUrlGraphQl
directory. - Enable the module.
How to use
CategoryInterface attribute
The following table defines the CategoryInterface attribute added by our extension.
ATTRIBUTE | DATA TYPE | DESCRIPTION |
---|---|---|
ecw_canonical_url | String | The absolute canonical URL. |
Example Usage
The following query shows how to get the canonical URL for a category:
Request:
Response:
CmsPage attribute
The following table defines the CmsPage attribute added by our extension.
ATTRIBUTE | DATA TYPE | DESCRIPTION |
---|---|---|
ecw_canonical_url | String | The absolute canonical URL. |
Example Usage
The following query shows how to get the canonical URL for a CMS page:
Request:
Response:
ProductInterface attribute
The following table defines the ProductInterface attribute added by our extension.
ATTRIBUTE | DATA TYPE | DESCRIPTION |
---|---|---|
ecw_canonical_url | String | The absolute canonical URL. |
Example Usage
The following query shows how to get the canonical URL for a product:
Request:
Response: