Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support document load listener (e.g. for URL generation) #5

Open
dantleech opened this issue Aug 26, 2014 · 0 comments
Open

Support document load listener (e.g. for URL generation) #5

dantleech opened this issue Aug 26, 2014 · 0 comments

Comments

@dantleech
Copy link
Contributor

Support document load event.

Use case

Document URL generators listen to a massive_search.document_post_load event (for example) and can do things such as setting the URL for a document after it has been loaded from the search index.

There would be two:

  • StaticRouteUrlDocumentListener: Generate routes using the Symfony routing system (e.g. for products)
    • Will need some sort of class map in configuration, and maybe something to do with the ExpressionLangugae to map properties to route parameters (??)
    • Or we could create a decorator per class
  • StructureRouteUrlDocumentListener: Set the URL for the search result based on the current portal, etc.
  • SymfonyCmfRoutingDocumentListener: Set the URL based on classes that implement the CMF RouteReferrersInterface for example..
alexander-schranz pushed a commit to alexander-schranz/MassiveSearchBundle that referenced this issue Feb 23, 2020
[bug] dependency not found when specifying target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant