Skip to content

There is no good handle for certain catalog category sites that I can use #31952

@Eddcapone

Description

@Eddcapone

Summary (*)

If you create a category then you can add a CMS block which shows on it.
I need to add a script to that specific category site which interacts with the CMS.
But there is no good layout handle which I can use to add my script from the theme by using a layout xml file.

image

The closest handle that I could use is catalog_category_view_id_6 but I made bad experience with binding to ID's because they can change if a user deletes the category and creates it again for example.

Examples (*)

  • see above

Proposed solution

We need a better handle which is build like this:

catalog_category_view_ID-OF-BLOCK


Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

  • Severity: S0 - Affects critical data or functionality and leaves users with no workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Ready for Grooming

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions