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

Multiple Configuration Support #79

Open
wants to merge 2 commits into
base: v9/dev
Choose a base branch
from

Conversation

patrick-lockdata
Copy link

We encountered an issue around having multiple Meganav Data Types being used on a single Umbraco site. We have one data type restricted to single items, and a second data type which allows an number of items. Once the site loads, the first configuration fetched by Meganev was the one used for all future renders. This means if the single item config was fetched first, our navigation menus with multiple items would only display the first item in the list.

This change updates the EnsureConfiguration method. We store a dictionary of configuration IDs to configuration objects, and return the proper one to the calling method based on the configuration needed by the property type.

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.

1 participant