Skip to content

Add ability to only display Announcement on Homepage #11

Open
@chrisaligent

Description

@chrisaligent

At the moment Announcements are displayed on all pages.

It should be possible (via a new Configuration option) to set an Announcement to only appear on the Homepage.

This could potentially be implemented by cloning the layout YAML into oro_frontend_root, and adding a condition to both layouts so that oro_frontend_root is only displayed if onlyOnHomepage=true and page is only displayed if onlyOnHomepage=false.

Or alternatively it may be possible to modify getDisplayStatus in the Layout DataProvider to check the current URL and configuration and handle this logic itself, this would remove the need for duplicate code and would be unit-testable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions