Copied to clipboard

Flag this post as spam?

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


  • Kenny Gutierrez 3 posts 23 karma points
    Jul 01, 2015 @ 17:56
    Kenny Gutierrez
    0

    Add Umbraco pages to Merchello Bazaar navigation?

    I'm trying to use the Merchello Bazaar starter site. I need to add some plain text pages such as Return Policy, Testimonials, whatever. I realize these would be regular Umbraco pages but how do I add those to the Bazaar Nav?

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Jul 01, 2015 @ 19:09
    Rusty Swayne
    2

    Hey Kenny,

    The model passed to the every view in the Bazaar, include the BazaarNav are of type MasterModel which is a typed IPublishedContent model via Umbraco's PublishedContentWrapped class.

    So it will act just as if you were on any normal Umbraco page.

    Example - Assuming your "Store" content is at the root and you have a document type "Policy" or "Testimonial" you could find these by:

      var policy = Model.Descendant("Policy");
    
      var testimonials = Model.Descendants("Testimonial);
    

    Let me know if you hit any snags =)

  • Biagio Paruolo 1597 posts 1828 karma points c-trib
    Jul 16, 2015 @ 08:36
    Biagio Paruolo
    0

    How to made the reverse? That is: How to find content or similar from store to pages that are children of root node ( no store node ) ?

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Jul 16, 2015 @ 15:32
    Rusty Swayne
    0

    @Biagio Not sure if I understand this correctly, but I think you have quite a few options - all available through Umbraco. It will just depend on what you are trying to do.

    Related products could be done via a multi node tree picker (MNTP), you could use the Relations API based on the Product content node or use the tree itself Ancestor(s), Descendant(s), Children ...

    Another possibility would be to use Examine ...

    Lots of ways. What specifically are your trying to do?

Please Sign in or register to post replies

Write your reply to:

Draft