Download the PHP package webx-ui/module-catalog-landings without Composer
On this page you can find all versions of the php package webx-ui/module-catalog-landings. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download webx-ui/module-catalog-landings
More information about webx-ui/module-catalog-landings
Files in webx-ui/module-catalog-landings
Package module-catalog-landings
Short Description Landing pages of the WebX UI catalogue: a category's list with a set of filters chosen in advance, under an address, an SEO card and texts of its own, with recommended products and links between the catalogue's pages.
License MIT
Homepage https://github.com/webx-ui/webx-ui
Informations about the package module-catalog-landings
webx-ui/module-catalog-landings
Landing pages for the catalogue of the WebX UI admin panel. A
landing is a category's list — or the whole catalogue's — with a set of filters chosen in advance,
under an address, an SEO card and texts of its own: /apple-laptops/ instead of
/laptops/brand_apple/. A satellite of webx-ui/module-catalog.
Specification: docs/architecture/WEBX_UI_CATALOG_LANDINGS.md in the monorepo.
Requirements
- PHP 8.4+, Laravel 13
webx-ui/module-catalogand what it requires (module-admin,module-seo,routing)
Install
There are no permissions of its own: catalog.view reads the landings, catalog.manage writes them.
Addresses
/{slug}/from the site's root, typecatalog.landingofwebx-ui/routing, in the same space as the categories: a slug one holds the other cannot take. A new slug leaves the old one as a 301.- Every link of the filter that chooses a landing's set points at the landing, and the category's
spelling of the set is a 301 there. A choice over the set is written after it —
/apple-laptops/price_0-1000/— and closed to the index. - The largest landing that covers the state wins; a landing covers a facet only when the same values are chosen, so Apple and Dell together are not the Apple landing.
The page
The category's template (webx-catalog::category), started from the set. On the plain page:
- the SEO card of the landing; an empty title is the H1, an empty H1 the name;
- the text above the list and the text under the pages;
- its own default sort, which the reader's
?sort=beats; - the strip of recommended products over the list (
webx-catalog-landings.recommended).
A landing whose list is empty stays up, noindex, and out of the sitemap.
Links
Four lists, each a Blade partial a site can publish (webx-catalog-landings-views) and a limit in
webx-catalog-landings.links.*: «Collections» on a category (landings marked on_category), the
neighbours of a landing on its base, the same set on other categories, and «In collections» beside
a product. Only published landings with products get links.
The count
products_count is recounted after every batch of the index that touched a landing's base, and
nightly by php artisan webx:catalog-landings:count --all (on the package's schedule). Where the
database answers the searches, there is no index, and the quarter-hourly run counts every landing.
Values that go
A set is stored by value ids. A merged value is followed; a deleted one drops out and the landing is marked «needs attention»; a set left empty, or turned into another landing's, is unpublished. A property in the bin drops out of every set at the next count. Saving the landing clears the mark.
API
/api/cms/catalog/landings — the list (q, category — an id or root — attention,
published, empty, trashed), a landing, POST, PUT, DELETE, restore, publish,
unpublish; POST count (a set → the number of products, and the landing that already holds it)
and GET facets?category= (the facets of a base with their values).
To an agent
The tools are the catalogue's — catalog_landings_list, _get, _facets, _count,
_create, _update, _publish, _unpublish, _delete, _restore, _generate (with
dry_run — the preview) and _generation — under the scopes catalog:read and
catalog:write. A set is written in facet codes and value slugs, as an address spells them —
{ "brand": ["apple"], "price": { "max": 50000 } } — and every answer gives the ids it is stored
by beside them. catalog://landings holds the house rules: what a landing is, when to make one,
how not to make the same one twice.
License
MIT
All versions of module-catalog-landings with dependencies
illuminate/bus Version ^13.0
illuminate/console Version ^13.0
illuminate/contracts Version ^13.0
illuminate/database Version ^13.0
illuminate/events Version ^13.0
illuminate/http Version ^13.0
illuminate/queue Version ^13.0
illuminate/routing Version ^13.0
illuminate/support Version ^13.0
illuminate/validation Version ^13.0
illuminate/view Version ^13.0
webx-ui/localization Version ^0.63.0
webx-ui/mcp Version ^0.63.0
webx-ui/module-admin Version ^0.63.0
webx-ui/module-catalog Version ^0.63.0
webx-ui/module-seo Version ^0.63.0
webx-ui/routing Version ^0.63.0