marghoobsuleman / hashtagcms

HashtagCms, Use it as Headless CMS or Bundled, API enabled, Admin Panel, multisite, multi-tenant, multiplatform, multilingual with endless possibilities. The Most powerful, fast, user-friendly and secured platform. Made with PHP Laravel Framework.
https://www.hashtagcms.org
MIT License
18 stars 4 forks source link

Custom theme not working: prod.INFO--->Unable to find view: hashtagcms::fe.basic.header/subscribe/footer #25

Closed DeRaja closed 2 years ago

DeRaja commented 2 years ago

Hello Marghoob,

I created a new theme in admin, copied "basic" theme directory to mybasic and saved the name of the directory in admin/theme. I changed the current theme name basic--->mybasic for both domains in both languages.

It was loading the basic theme directory. So, I renamed /vendor/marghoobsuleman/hashtagcms/resources/views/fe-->to-->fex.

It began to load the theme from the /resources/views/vendor/hashtagcms/fe/basic. I did not want this as I want to load from my custom theme directory "mybasic". Thus, I renamed this directory fe-->to-->fex also.

Now, HashtagCMS MUST load the theme from "mybasic". Unfortunately, the current installation didi not recognize a custom theme. In laravel.log, I found following relevant information coming from the FeHelper:

[2022-01-10 21:53:51] prod.INFO: layoutManager: loading data completed, status: 200 [2022-01-10 21:53:51] prod.INFO: layoutManager: setFinalObject [2022-01-10 21:53:51] prod.INFO: layoutManager: setThemePath [2022-01-10 21:53:51] prod.INFO: Unable to find view: hashtagcms::fe.basic.header [2022-01-10 21:53:51] prod.INFO: Unable to find view: hashtagcms::fe.basic.subscribe [2022-01-10 21:53:51] prod.INFO: Unable to find view: hashtagcms::fe.basic.footer [2022-01-10 21:53:51] prod.INFO: layoutManager: after setThemePath [2022-01-10 21:53:51] prod.INFO: layoutManager: setFinalObject again [2022-01-10 21:53:51] prod.INFO: ============ layoutManager: End. ===========

I will have to work with the basic theme directory until you offer a patch.

DeRaja commented 2 years ago

Hi,

It appears that I have to copy files in multiple directories, which I did not earlier. I will try this out and let you know.