Hello. We have purchased Craft and I'm trying to figure out how to implement this into an MVC project we're building. A little confusing is in the documentation the file structure it says the theme has is wrong. Can I possibly get some direction on where to put what files and what references/configuration needs to be updated after I move them around to the needed locations?
Hi,
I want to apologize for the late reply.
Are you creating your own MVC project implementation, or are you using a specific framework?
To use our theme in an MVC project, you need to build the assets by following the instructions provided in our documentation. Once built, copy the output folders and place them in the public folder of your project. After that, ensure you load the mandatory JavaScript and CSS files globally.
Style files:
<link href="/assets/plugins/global/plugins.bundle.css" rel="stylesheet" type="text/css">
<link href="/assets/css/style.bundle.css" rel="stylesheet" type="text/css">
<script src="/assets/plugins/global/plugins.bundle.js"></script>
<script src="/assets/js/scripts.bundle.js"></script>
This is a new project using MVC with Entity Framework with a C# .Net Core back end and a SQL database.
Given the delay in your reply I tried to get started on my own. The biggest challenge is MVC requires certain files be in certain folders in the file architecture. I tried to move them all to the right places, but had a ton of file references to update so they pointed to the correct new locations.
Hi,
By default, scripts, styles, and images use general paths. Depending on your framework, you may need to adjust these paths accordingly.
Have you been able to update these paths?
Are you currently encountering any errors?
Regards,
Lauris Stepanovs,
Keenthemes Support Team