Developer forum

Forum » Dynamicweb 10 » How to render Product and ProductGroup links

How to render Product and ProductGroup links

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

I have created a new Paragraph item where I am using the Button Editor for rendering a button.
I want to allow selecting a ProductGroup or a Product link.
I have noticed that the default Swift V2 items are using something like this:
Model.TryGetButton("FirstButton", out ButtonViewModel firstButton)
However, the generated link for Groups or Products if just appending groupId or productid parameters to the current link, resulting in a non-working product or product group link.
Am I using it wrong? How can I control the Shop page or ProductDetail page ID when rendering the link?

Thank you,
Adrian


Replies

 

You must be logged in to post in the forum