Download the PHP package magmodules/m2-alternate-hreflang-graph-ql without Composer
On this page you can find all versions of the php package magmodules/m2-alternate-hreflang-graph-ql. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download magmodules/m2-alternate-hreflang-graph-ql
More information about magmodules/m2-alternate-hreflang-graph-ql
Files in magmodules/m2-alternate-hreflang-graph-ql
Package m2-alternate-hreflang-graph-ql
Short Description N/A
License OSL-3.0 AFL-3.0
Informations about the package m2-alternate-hreflang-graph-ql
Magmodules_AlternateHreflangGraphQl
This module provides GraphQL support for the Magento 2 Magmodules_AlternateHreflang
module (link), allowing you to retrieve hreflang
alternate URLs for products, categories, and CMS pages via GraphQL.
Features
- GraphQL endpoint for retrieving alternate hreflang URLs.
- Per-entity resolvers for:
- Products
- Categories
- CMS Pages
- Uses Magento StoreView context for correct URL resolution.
Install via Composer
Make sure the base module Magmodules_AlternateHreflang
is already installed.
-
Go to Magento® 2 root folder
-
Enter the following commands to install module:
-
Enter following commands to enable module:
- If Magento® is running in production mode, deploy static content with the following command:
Usage
Products
Categories
CMS Pages
Configuration
Ensure that the base module is enabled and that hreflang output is configured in the Magento Admin:
Stores > Configuration > Magmodules > Alternate Hreflang
Structure
CmsAlternateUrls
– GraphQL resolver for CMS pagesCategoryAlternateUrls
– GraphQL resolver for categoriesProductAlternateUrls
– GraphQL resolver for productsBaseAlternateResolver
– Shared helper logic for formatting response
Testing
Use tools like GraphiQL or Magento PWA Studio to test queries.
License
See COPYING.txt
. All rights reserved © Magmodules.eu.