Developer forum

Forum » CMS - Standard features » Design folder name

Design folder name

Nuno Aguiar
Reply

Hi,

 

How can I get the current design folder's name in Razor?

 

Best Regards,

Nuno Aguiar


Replies

 
Viktor
Reply

Hi,

I found only tag "Template:DesignBaseUrl" returned e.g. "/Files/Templates/Designs/Condition/"

Is that what you need?

BR, Viktor, DW Russia Team.

 
Nicolai Høeg Pedersen
Reply

Hi Nuno

Or use Pageview.Layout.Design.Name

 
Nuno Aguiar
Reply

Hi Nicolai,

 

We got it working with the tag Viktor gave us, but not with your suggestion. What could I be doing wrong? Could Pageview.Layout be private?

 

Best Regards,

Nuno Aguiar

 
Nicolai Høeg Pedersen
Reply

Pageview.Layout is internal, so that is why...

NP

ageview.Layout#sthash.bXMYA2Cx.dpuf
 
Nuno Aguiar
Reply

:)

 

Not sure what other properties are there, so I'll let you decide whether or not makes sense to be public.

 

Thanks for confirming.

Nuno Aguiar

 
Nuno Aguiar
Reply

Hi Nicolai,

 

Any chance to make Pageview.Layout public? Would be great to get that value as a property in the API.

 

Best Regards,

Nuno Aguiar

 
Nicolai Pedersen
Reply
This post has been marked as an answer

Yes of course! TFS#27579 for 8.9.1 and 9.1.1

NP

Votes for this answer: 1
 
Nuno Aguiar
Reply

Perfect, thank you

 

You must be logged in to post in the forum