Hi,
I have a solution where the customer want's to be able to choose among several header templates. They have a developer who creates some of the templates that they wan't to be able to choose among. And they would like to keep it in simple files that they want to include in the master templates. I've created a file-field on the website settings item, where they can choose among files in a "partials > headers" folder I've created in the design folder.
I have a string containing the filenam (headerPartial) and if I try to include the file chosen in the field, this way: @Include("../partials/headers/@headerPartial"), I just get this message:
[Include file '../partials/headers/test.header.cshtml' not found in 'Templates/Designs/website/master/master.cshtml']
If I hardcode the exact same value, this way: @Include("../partials/headers/test.header.cshtml"), it works just fine.
So my simple question: Is it not possible to create dynamicweb includes like this?