Hi,
I would like to have the eCommerce language id of current site as a global tag like this:
Global.eCommerce.Lang.ID
Thank you :-)
/Sten Hougaard
@netsi1964
- For hire -
Hi,
I would like to have the eCommerce language id of current site as a global tag like this:
Global.eCommerce.Lang.ID
Thank you :-)
/Sten Hougaard
@netsi1964
- For hire -
Hi Sten
Can I recommend Razor?
Dynamicweb.eCommerce.Common.Context.LanguageID
//Nicolai
Well, you just did :-)
Often changing a "old style" HTML (XSLT) template into Razor is not a simple task. Further more for the customer it may not even be noticed, which gives the situation where he should pay for something he already had...
I however agree with you that switching to Razor gives you Ninja powers. Just thinking: Would it be an option simply to rename HTML files to .cshtml without having to do any change to the template? Would the Razor parser survive that?
/Sten
Hi Sten
The problem with global tags is that they are a problem if we add too many. Because they are 'eager' loaded and not on demand when using HTML/XSLT templates.
So it is not that we do not want to add it - but it would be a performance problem eventually. And we do not want that!
You cannot just rename a html template to cshtml - or you can, but tags would not work. The filemanager do have a conversion tool though - it will convert most tags and loops, but not conditionals.
BR Nicolai