I am trying to change the template for the BazaarMaster document type by creating a new master template "the normal Umbraco way".
The new template shows up in the template selector for the BazaarMaster document type and I can select it an save.
But when I run the project it still uses the default template from the views folder in the Merchello.Bazaar plugin folder. Is it some kind of locked to this template so I have to modify the master template and the other views in the plugin folder?
Overall, after puzzling with the Bazaar project, I find it much easier to use the Bazaar starter kit as a guideline, and then little by little move the needed functionality into my own project, instead of using it as a "plug 'n' play"-project. - And I guess it was created for that purpose.
Yes, the Bazaar was intended as an example but a lot of people are using it for their build. I am planning on putting a new starter kit together that does not include the themes and gets rid of a bunch of overly complicated things in the Bazaar (like the model factories). However, we are looking at the CG time frame for this ...
Cool- looking forward to test that new starter kit.
Especially the theme section and the fact that all the views (and other files) are moved away from the "known" Umbraco structure, was (for me) a bit hard to grasp and complicated separate out.
How to change template for the BazaarMaster doctype?
Hi
I am trying to change the template for the BazaarMaster document type by creating a new master template "the normal Umbraco way".
The new template shows up in the template selector for the BazaarMaster document type and I can select it an save.
But when I run the project it still uses the default template from the views folder in the Merchello.Bazaar plugin folder. Is it some kind of locked to this template so I have to modify the master template and the other views in the plugin folder?
Best regards
Hey Thomsen,
You will need to create your own controller using the document type you created so that you can hijack the route correctly. https://our.umbraco.org/documentation/reference/routing/custom-controllers
What is happening is the default Bazaar controller is assigning the template.
Thank you Rusty,
It helped changing the routes.
Overall, after puzzling with the Bazaar project, I find it much easier to use the Bazaar starter kit as a guideline, and then little by little move the needed functionality into my own project, instead of using it as a "plug 'n' play"-project. - And I guess it was created for that purpose.
Thank you very much.
Hey Thomsen,
Yes, the Bazaar was intended as an example but a lot of people are using it for their build. I am planning on putting a new starter kit together that does not include the themes and gets rid of a bunch of overly complicated things in the Bazaar (like the model factories). However, we are looking at the CG time frame for this ...
Hey Rusty,
Cool- looking forward to test that new starter kit.
Especially the theme section and the fact that all the views (and other files) are moved away from the "known" Umbraco structure, was (for me) a bit hard to grasp and complicated separate out.
is working on a reply...