Developer forum

Forum » Templates » Custom template location

Custom template location

Rasmus Andersen
Reply


Hi Dynamicweb,

Is it possible to insert a different template location than the default, while still allowing editors to pick the templates from Dynamicweb using items?  

I have tried using an:
- ItemTypeTemplateExtender and set it's template path
- NotificationSubscriber using OnBeforeRender and set the template path onBeforeRenderParagraphArgs.ParagraphViewModel.Template using template.LoadTemplate("")

But it dosen't seem to work.

Best regards,
Rasmus  

 


Replies

 
Nicolai Pedersen
Reply

Hi Rasmus

I am sure it is not possible - but I am not sure either I completely understand what you are trying to do - maybe you could ellaborate and explain the use case?

BR Nicolai

 
Rasmus Andersen
Reply
This post has been marked as an answer

Hi Nicolai,

I was trying to encapsulapte all parts of an item (component) into it's own namespace, like Models, Subscribers, SearchExtenders, Templates etc.

Best regards,
Rasmus  

Votes for this answer: 1

 

You must be logged in to post in the forum