Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Thomsen 112 posts 335 karma points
    Apr 08, 2016 @ 21:08
    Thomsen
    0

    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

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Apr 11, 2016 @ 16:07
    Rusty Swayne
    0

    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.

  • Thomsen 112 posts 335 karma points
    Apr 13, 2016 @ 22:58
    Thomsen
    0

    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.

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Apr 14, 2016 @ 15:13
    Rusty Swayne
    0

    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 ...

  • Thomsen 112 posts 335 karma points
    Apr 15, 2016 @ 10:26
    Thomsen
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft