Download the PHP package youngdogs/magento2-cms-search without Composer

On this page you can find all versions of the php package youngdogs/magento2-cms-search. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package magento2-cms-search

YoungDogs_CmsSearch

Adds flexible GraphQL search for Magento 2 CMS pages and CMS blocks.

Out of the box, Magento only lets you fetch a CMS page by its exact identifier, or CMS blocks by an exact list of identifiers. This module adds two additional queries, cmsPageSearch and cmsBlockSearch, that let you search by content, title, and other fields — with exact match, word/phrase search, or "in list" filtering.

Requirements

Installation

Configuration

Stores > Configuration > YOUNG-DOGS > CMS Search

The section is protected by the Stores > Configuration > CMS Search ACL permission.

Field Description
Enable module Yes/No, defaults to Yes. When disabled, both queries return a GraphQL input error.
Maximum Page Size Hard upper limit applied to pageSize, regardless of what the client requests.

Only active pages/blocks belonging to the current store view are returned.

GraphQL usage

Search CMS pages

Search CMS blocks

Filterable fields

Query Fields
cmsPageSearch identifier, title, content, content_heading, meta_title, meta_description, meta_keywords
cmsBlockSearch identifier, title, content

Each field accepts a CmsSearchFilterTypeInput:

Condition Behavior
eq Exact match.
in Matches any value in the given array.
match Search-engine style: "quoted phrases" are matched literally; remaining words are split on whitespace and combined with AND. Case-insensitive substring match.

Multiple fields in the same filter object are combined with AND.

Plain-text content

Both cmsPageSearch and cmsBlockSearch items expose a content_text field alongside content: the same content with HTML tags, <script>/<style> blocks, and entities stripped/decoded, leaving plain readable text. Useful when passing results to an AI agent that shouldn't have to parse markup.

Sorting

sort: { field: TITLE | IDENTIFIER, direction: ASC | DESC } (defaults to title ASC).

Limitations

License

MIT — see LICENSE.


All versions of magento2-cms-search with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2 <8.6
magento/module-cms Version >=104.0 <107
magento/module-store Version >=101.1 <103
magento/module-graph-ql Version >=100.4 <102
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package youngdogs/magento2-cms-search contains the following files

Loading the files please wait ...