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

Implement factory for creation of CustomEntity/Page base classes #30

Closed
HeyJoel opened this Issue Nov 30, 2016 · 3 comments

Comments

Projects
None yet
1 participant
@HeyJoel
Copy link
Member

HeyJoel commented Nov 30, 2016

I want to add custom data to my page base classes so it was available on every page, the best way I can think of doing that would be to override the factory that creates the base page class and use it to add my custom data. My scenario was that I had user data that I added to every page and need to access it in the master page.

Will add more detail here after investigating it a bit further.

@HeyJoel HeyJoel added the enhancement label Nov 30, 2016

@HeyJoel HeyJoel added this to the 0.1 milestone Nov 30, 2016

@HeyJoel HeyJoel self-assigned this Nov 30, 2016

@HeyJoel HeyJoel modified the milestones: 0.2 (Announcement), 0.1 (Early Feedback) Jan 16, 2017

@HeyJoel

This comment has been minimized.

Copy link
Member

HeyJoel commented Mar 22, 2017

This has come up again with a developer wanting to have a "LayoutModel" attached to every view model and consumed in the layout page. This would contain properties like custom meta data. The developer has solved this for now by creating a custom view base class and initializing it using an action filter.

@HeyJoel

This comment has been minimized.

Copy link
Member

HeyJoel commented Mar 24, 2017

Work is complete on this item, prerelease package available on myget. Docs to follow.

@HeyJoel HeyJoel modified the milestones: 0.1.5, 0.2 (Announcement) Mar 24, 2017

@HeyJoel

This comment has been minimized.

Copy link
Member

HeyJoel commented Mar 29, 2017

Fix is now published in release 0.1.5. Custom view model docs here

@HeyJoel HeyJoel closed this Mar 29, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment