Skip to content

contentSelector only finds first matching element #51

@fteuber

Description

@fteuber

The plugin uses querySelector(contentSelector) to get the content. By default, contentSelector is 'body' (PageParser.js)

We want to exclude all texts that are not in a top content-collection. In some setups there are more than one content-collections (e.g. one for "header", one for "main"). This leads to the problem, that something like "body > .neos-contentcollection" does not work. It only returns the first content-collection instead of all,

I would like to have PageParser to instead use querySelectorAll for this purpose. Would this break stuff? Should there be an option?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions