Developer forum

Forum » Development » Get paragraph template via API

Get paragraph template via API

René Poulsen
René Poulsen
Reply

Hi,

Is it possible to get the template used on a a paragraph through the API? I see that the Paragraph has a Template attribute / value, but when nothing is chosen on the paragraph, the .Template value is empty. Then I want to find out if it just uses "default.cshtml" or if the dwcontent-area has some limitations / default template set etc. etc.

Is this possible in a relatively easy way?

Thanks.


Replies

 
René Poulsen
René Poulsen
Reply
This post has been marked as an answer

Solved: Dynamicweb.Frontend.LayoutTemplateLocator to the rescue! :-)

Votes for this answer: 1

 

You must be logged in to post in the forum