Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi, i have a rather basic question, essenitally i have a lot of razor scripts and am thinking about adding folders to the macroScripts folder. I have done a quick test and everything seems fine, but just wanted to find out if this may have any unforseen issues going forward ... has anyone tried this?
Also i am planning to create a folder called Shared where i keep all the shared razor files, all of which would probably be accessed from within razor scripts using the @RenderPage("~/macroScripts/Shared/filename.cshtml") syntax, is there a better way? ... should i follow the underscore naming convention.
Any guidance (best practise) advise would be appreicated. I am using Umbraco 4.11.6 and am using WebForms as the rendering engine
Yes, you can create sub folders in the macroScripts folder without any problems and also using @RenderPage is the best way to render additional razor scripts.
Thanks for your response Jeavon much appreciated
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted