Developer forum

Forum » Development » Custom module and masterpage

Custom module and masterpage

Aksel Andersen
Reply

Hi.

 

I'm pretty new to dw development.

How do I add a custom module so its shown on every page without manually adding it to each page in /Admin?

Could this be done in Page_Load on Default.aspx.cs somehow?

 

Thanks!

Aksel

 

 

 

 

 

 


Replies

 
Mikkel Ricky
Reply
This post has been marked as an answer

Hi Aksel,

Welcome to the Dynamicweb world and to this forum.

You can include the output of a paragraph in your template using @Global:Paragraph.Content([ID]).

This means that if you add your custom module to a paragraph with id 87, say, you can put this into your master template

<!--@Global:Paragraph.Content(87)-->

to render the module content on all pages.

Best regards,
Mikkel
 

 

 

 

 

 

Votes for this answer: 1
 
Aksel Andersen
Reply

Thanks Mikkel! :)

 

Best Regards

Aksel

 

 

 

 

You must be logged in to post in the forum