Developer forum

Forum » Templates » Razor version of Template:DesignBaseUrl?

Razor version of Template:DesignBaseUrl?

Anders Ebdrup
Reply

Hi Dynamicweb,

 

What is the razor version of this tag: @Template:DesignBaseUrl introduced in 8.5?

 

Best regards, Anders


Replies

 
Mikkel Ricky
Reply
This post has been marked as an answer

It's just a template tag like any other: 

@GetString("Template:DesignBaseUrl")
@GetString("Template:BaseUrl")

We haven't added these properties to the Template object itself (if that's what you're asking).

Best regards,
Mikkel

Votes for this answer: 1
 
Anders Ebdrup
Reply

Hi Mikkel,

 

Thanks for quick reply!

I think that something wrong in the syntax shown here: http://developer.dynamicweb.com/releases/dynamicweb-8-5.aspx#13853

 

It seems to be a mix between razor and dw-tags

Best regards, Anders

 
Mikkel Ricky
Reply

Yeah, that example is a bit of a mess. It should read

<!--@SnippetStart(StyleSheets)-->
<link href="<!--@Template:DesignBaseUrl-->/stylesheets/ecom.css"/>
<!--@SnippetEnd(StyleSheets)-->

Thanks for pointing that out.

Best regards,
Mikkel

 

You must be logged in to post in the forum