Copied to clipboard

Flag this post as spam?

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

  • Trevor Loader 199 posts 256 karma points
    May 09, 2016 @ 22:22
    Trevor Loader

    Get Merchello Product List View GUID (not actual products)

    I'm building up a sub menu of product categories as defined by "Product Collection" nodes. Ie, under the store I have nested product collection pages that have the Merchello Product List View datatype on them to pick collections.

    Is there a way in code to retrieve the collection GUID on the current node instead of the actual products in the collection?

    Eg prodCollectionPage.Products returns IEnumerable<IProductContent> but I want the associated collection guid.

    Worst case, I'll add a save event and save off the Guid into another field that I can access.

    Thanks Trevor

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    May 09, 2016 @ 22:42
    Rusty Swayne

    Hey Trevor,

    Read through this and see if you can get it. Basically you want to override the default property value converter ...

  • Trevor Loader 199 posts 256 karma points
    May 09, 2016 @ 23:09
    Trevor Loader

    Beautiful! Extending PublishedContent with GetDataValueAsGuid was exactly what I was after. Works really well.

    Thanks Rusty.

Please Sign in or register to post replies

Write your reply to: