Developer forum

Forum » Templates » Get the name of current pagetemplate

Get the name of current pagetemplate

Hans Ravnsfjall
Hans Ravnsfjall
Reply

Hi

Is there a way to output the name of the current pagetemplate from a paragraph template view?

@TemplateTags does not reveal this, but maybe somehow via the API this could be done?

/Hans

Replies

 
Nicolai Pedersen
Nicolai Pedersen
Reply

Dynamicweb.Frontend.PageView.Current().Layout.File.FullName

You can find all the available properties of the .File property here:

https://doc.dynamicweb.com/api/html/51cb2a8a-6b1b-e6d3-4885-d30921322c77.htm

 
Nicolai Pedersen
Nicolai Pedersen
Reply

Dynamicweb.Frontend.PageView.Current().Layout.File.FullName

You can find all the available properties of the .File property here:

https://doc.dynamicweb.com/api/html/51cb2a8a-6b1b-e6d3-4885-d30921322c77.htm

 

You must be logged in to post in the forum