Skip to content

Accessing Oqtane DI services/repositories during module install (IInstallable.Install method) #4238

Answered by sbwalker
lanthonyneville asked this question in Q&A
Discussion options

You must be logged in to vote

@lanthonyneville I believe "routable modules" is what you should use in this case. Please see this blog post:

https://www.oqtane.org/blog/!/62/routable-modules

You can specify pages to be created within your ModuleInfo.cs class:

public class ModuleInfo : IModule
{
    public ModuleDefinition ModuleDefinition => new ModuleDefinition
    {
        Name = "Your Module",
        PageTemplates = new List<PageTemplate>()
        {
            new PageTemplate { AliasName = "*", Path = "admin/yourpage", Parent = "admin", Name = "Your Page" }
        }
    };
} 

In regards to the issue with Repository services, you need to remember that Oqtane is multi-tenant and each tenant can have its own dat…

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
4 replies
@lanthonyneville
Comment options

@leigh-pointer
Comment options

@leigh-pointer
Comment options

@lanthonyneville
Comment options

Comment options

You must be logged in to vote
4 replies
@lanthonyneville
Comment options

@sbwalker
Comment options

@lanthonyneville
Comment options

@lanthonyneville
Comment options

Answer selected by lanthonyneville
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants