Hi Dynamicweb,
What is the razor version of this tag: @Template:DesignBaseUrl introduced in 8.5?
Best regards, Anders
Hi Dynamicweb,
What is the razor version of this tag: @Template:DesignBaseUrl introduced in 8.5?
Best regards, Anders
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
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
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