Is there a way to include a .less file from the supplementary files from within the HeadScript area of the Theme in ThemeStudio?
I can get the file to include, but it is not processing as LESS.
Is there a way to include a .less file from the supplementary files from within the HeadScript area of the Theme in ThemeStudio?
I can get the file to include, but it is not processing as LESS.
#if(true) <meta key="hf-test" content="$page.MetaTitle" /> <link type="text/css" rel="stylesheet" href="/cfs-filesystemfile/__key/themefiles/f-s-3fc3f82483d14ec485ef92e206116d49-files/mystyles.less" /> #end
I think I need to get a different type of executed URL for a supplementary theme file from within the HeadScript area of the Theme.
#if(true) <meta key="hf-test" content="$page.MetaTitle" /> <link type="text/css" rel="stylesheet" href="/cfs-filesystemfile/__key/themefiles/f-s-3fc3f82483d14ec485ef92e206116d49-files/mystyles.less" /> #end
I think I need to get a different type of executed URL for a supplementary theme file from within the HeadScript area of the Theme.
You should use core_v2_widget.GetExecutedFileUrl(fileName). This will retrieve the processed file location (which is lazy populated) for LESS/CSS files.
Will this work within the HeadScript in Theme Studio as well?