Developer forum

Forum » CMS - Standard features » PIM product in Draft mode + Content in draft mode

PIM product in Draft mode + Content in draft mode

Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi,

 

At winnebago.com they have a catalog website (no ecommerce, but product catalog) and they've build content-rich pages with dynamic content from ecommerce/pim. Here is an example

https://www.winnebago.com/models/product/motorhomes/class-c/ekko

 

The technical architecture behind some of this is:

  • Product Catalog to manage product data
  • AJAX request to get Paragraphs linked by ID

 

The questions are:

  • What querystring parameter can we use to see the paragraphs's draft mode?
    (we're using PIM's preview query parameters for the Product data)
  • Using Services to get Pages/Paragraphs as Items, how can we get the draft version of them?
    (there's some custom code getting Pages and Paragraphs through API Services - we can check for the draft querystring parameter and make changes to that too)

 

The goal is provide decision makers with a URL (even if they have to be logged into the backend) to view the draft version, before the marketing team can "deploy" the changes.

 

Best Regards,

Nuno Aguiar


Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

To get the preview, add &vsPreviev={pageid} to the querystring.

Use ParagraphService.GetParagraphDraft(paragraphId) to get the draft.

BR Nicolai

Votes for this answer: 1
 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Nicolai,

 

Perfect, just what I was looking for. Thanks,

 

BR,

Nuno 

 

You must be logged in to post in the forum