Modules:Magenx_Blog (content and admin) and Magenx_BlogGraphQl (storefront API)
A blog written in the Magento admin and shown by the storefront. Posts can link to related products and related posts, so a product page can show “articles about this product”.
The editor creates a post and fills general data, content (rich text with image picker), categories and tags, related products (searchable grid with positions), related posts, SEO fields and store views.
Saving stores the post and its links and refreshes the storefront's cached blog pages.
Schedule
A future publish date keeps the post hidden on the storefront until then.
Organise
Editors manage categories (with order) and tags (with SEO fields).
Unpublish
Switching a post off or removing its store view hides it on the next request.
Index and filters
The storefront asks for a page of posts, optionally filtered by URL key, category, tag or product SKU (all combined).
It receives the total count and items, newest first.
Post page
The storefront asks for a post by URL key; it gets nothing if the post is not published in the store view.
It renders content (cleaned on display), categories, tags, related posts and related product references.
Tag page and categories
A tag by URL key comes with its published posts.
The category list returns active categories in order.
Yes/No. When set to No the blogPosts / blogPost / blogTag / blogCategories GraphQL queries resolve to empty results for this store, without removing any data.
Posts Per Page magenx_blog/general/posts_per_page
10
Store view
Text. Shown when Enable Blog = Yes. Page size used by blogPosts when the query does not pass pageSize.
Maximum Page Size magenx_blog/general/max_page_size
50
Store view
Text. Shown when Enable Blog = Yes. Upper bound on the pageSize a blogPosts query may request; larger values are clamped to this. Guards against a single query loading the whole post table.
With Enable Blog set to No, the blog queries return empty results for that store. No content is deleted.
blogPosts can be filtered by URL key, category, tag or product SKU. The related categories, tags, products and posts of a page of posts are loaded together, not one post at a time. BlogPost.products returns SKU and URL-key references; load full product data through the storefront’s product queries.
Post image is a host-less media path such as /media/blog/hero.jpg, served by the storefront’s own /media route.
A paginated, filterable list of published blog posts for the current store, newest first.
Argument
Type
Description
filter
BlogPostFilterInput
Server-side filters: url_key, category_id, tag_id and sku are all resolved in the database, not scanned client-side.
pageSize
Int
Number of posts to return. Defaults to 10.
currentPage
Int
Page number, starting at 1. Defaults to 1.
blogPost(urlKey: String!): BlogPost
A single published blog post by URL key, or null when it does not exist, is disabled, is not assigned to the current store, or is future-dated.
Argument
Type
Description
urlKey
String!
The post's URL key.
blogTag(urlKey: String!): BlogTag
A single blog tag by URL key, with the published posts assigned to it, or null when it does not exist.
Argument
Type
Description
urlKey
String!
The tag's URL key.
blogCategories: [BlogPostCategory!]!
Every active blog category, ordered by position.
Types
input BlogPostFilterInput - Server-side filters for blogPosts. All provided fields are combined with AND.
Field
Type
Description
url_key
String
Exact URL key match.
category_id
Int
Only posts assigned to this category.
tag_id
Int
Only posts assigned to this tag.
sku
String
Only posts with this product SKU in their related products — the "articles about this product" lookup.
type BlogPosts - A page of blog posts.
Field
Type
Description
total_count
Int
The total number of posts matching the query, across all pages.
items
[BlogPost!]!
The posts on this page.
type BlogPost - A blog post.
Field
Type
Description
post_id
Int!
The post's unique ID.
name
String!
The post title.
short_description
String
A short summary shown on listing cards.
post_content
String
The full post body, authored in the admin WYSIWYG and returned as HTML exactly as stored. Nothing is sanitized server-side; the Next.js storefront runs it through sanitizeCmsHtml on read, and any other consumer must sanitize before rendering.
image
String
The headline image as a media path rooted at the store's media base — "/media/blog/hero.jpg", exactly as the admin media gallery inserted it — or null when none is set. Deliberately host-less: in a headless setup the storefront serves media from its own /media route, not from the Magento host.
url_key
String!
The URL key used to build the post's storefront URL.
publish_date
String
The publish date, or null when unset.
author_name
String
The display name of the post's author, or null when unset.
meta_title
String
SEO meta title, or null when unset.
meta_description
String
SEO meta description, or null when unset.
meta_keywords
String
SEO meta keywords, or null when unset.
categories
BlogPostCategories
The categories this post is assigned to.
tags
BlogTags
The tags assigned to this post.
products
BlogPostProducts
The products related to this post (admin-managed), ordered by their configured position.
posts
BlogPosts
Other posts related to this post (admin-managed), ordered by their configured position.
type BlogPostCategories - A post's assigned categories.
Field
Type
Description
items
[BlogPostCategory!]!
type BlogPostCategory - A blog category.
Field
Type
Description
category_id
Int!
The category's unique ID.
name
String!
The category name.
url_key
String!
The URL key used to build the category's storefront URL.
type BlogTags - A post's assigned tags.
Field
Type
Description
items
[BlogTag!]!
type BlogTag - A blog tag.
Field
Type
Description
tag_id
Int!
The tag's unique ID.
name
String!
The tag name.
url_key
String!
The URL key used to build the tag's storefront URL.
description
String
A description of the tag, or null when unset.
meta_title
String
SEO meta title, or null when unset.
meta_description
String
SEO meta description, or null when unset.
posts
BlogPosts
The published posts assigned to this tag.
type BlogPostProducts - A post's related products.
Field
Type
Description
items
[BlogPostProductRef!]!
type BlogPostProductRef - A lightweight reference to a related product. Resolve full catalog data via the storefront's own product-by-SKU lookup when display data is needed.
Field
Type
Description
entity_id
Int
The product's entity ID.
sku
String!
The product SKU.
url_key
String
The product's URL key, or null when it has none configured.