November Happy Hour will be moved to Thursday December 5th.
November Happy Hour will be moved to Thursday December 5th.
Hey Torunn,
Have you checked out this documentation regarding creating addons? Some things to try:
<file src="Views\<folder>\Index.aspx" target="Content\modules\_protected\<folder>\Views\Index.aspx" />
For debugging I would try first updating your nuspec file and making sure that the Index.aspx and whatever other view files you have are correctly added to the modules/_protected folder first. Once you confirm that, if you are still getting 404 errors, you can see if you GuiPlugin attribute properties need to be updated.
If that doesn't work let us know.
Thanks, David, the module.config file helped. Now it finds the view, but the model used in the view is null. Could it be because it doesn't find the controller? I tried adding som routing in the module.config with no luck.
Its hard to say without seeing more of the code. Some things I would suggest checking out:
<routes>
<route controllerPrefix="Nansen">
<defaults>
<add key="controller" value="CustomAdminPlugin" />
<add key="action" value="Index" />
<add key="id" value="" />
</defaults>
</route>
</routes>
Hi!
We have developed an admin plugin, which I have packaged as a nuget package. I am trying to make it work in another project, but it can't find the aspx-file. Where should I put the file? I have tried to put it in the root, in the modules/protected folder etc. But I get 404.
Could someone please post an example of how the nuspec should be configured and how the Url should be set in the GuiPlugin attribute, thanks.
nuspec:
<file src="Views\<folder>\Index.aspx" target="content\modules\_protected\<folder>\" />
Controller:
[GuiPlugIn(Url = ""