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

10. Custom menu voter #10

Open
wants to merge 1 commit into
base: 09-menu
Choose a base branch
from
Open

10. Custom menu voter #10

wants to merge 1 commit into from

Conversation

dbu
Copy link
Owner

@dbu dbu commented May 10, 2014

This menu voter highlights the "Schedule" menu item if the content is of class Presentation.

This voter is not very robust, it relies on the URL which can be edited by the user (and would not work with translated URLs at all).

- Dbu\ConferenceBundle\Document\Presentation
- /schedule
calls:
- [setRequest, ["@?request="]]
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use a synchronized service here to avoid scope issues.

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

Successfully merging this pull request may close these issues.

None yet

1 participant