Developer forum

Forum » Development » Custommodules in seprate dlls

Custommodules in seprate dlls


Reply

We've got a new client that allready have a few custommoduls compiled into custommodules.dll.

 

Now we need to add a new custommodule to the solution, and since we don't have the sourcecode for the old custommodules we can't compile our solution into custommodules.dll.

 

I've tryed to compile our custommodule into a seprate dll. But how does it get called from DynamicWeb.

 

I've read a post about it here in the forum, but can't seem to get it working.

 

 

Here's how I've done it (I've simplified it to save space):

 

I've changed the namespace from custommodules to HelloWorldNameSpace

And compile the solution into HelloWorld.dll

 

using Dynamicweb;
using Dynamicweb.Extensibility;
 
 
public class HelloWorld:Dynamicweb.ContentModule
{
  [AddInName("HelloWorld")]
  public override string GetContent()
  {
    return "HelloWorld";
  }
}
 

Everything works fine in the backend, the administration, the paragraph administration.

But the content "HelloWorld" is never shown in the front end.

 

How do I get the content of my module shown in the frontend without changing the Switch Case in Content_CMEventHandler in the orginal CustomModules?

 

 

Thanks in advance.

KimS


Replies

 
Reply

Please check out this article I posted the other day http://developer.dynamicweb.dk/Weblog-16918.aspx?action=ShowArticle&ArticleID=132. If you followed the directions in the video, everything should be working fine.

 
Reply

After watching the movie again, I saw that I placed the [AddInName("HelloWorld")] over the method and not the class :)

 

Now everything is working perfect

 
Reply

I think I did the same thing in one of the cut-out scenes of the video:)

 

You must be logged in to post in the forum