Hello,
I have a question about js-use-api (HTL JavaScript)
I have a page called product/en/index.html, in this page I want to get livecopy path from spesific path.
I already have the livecopy page, here is the detail:
Blueprint Page : /content/project/product/en/help.html
Livecopy Page : /content/project/product/uk/contact/help.html
Let's say I have the blueprint path, how can I get the livecopy path of that blueprint using HTL JavaScript?
I have try below code but not working,
"use strict";
use(function () {
var data = {}
var thePage = "/content/project/product/en/help";
data.livecopyPath = currentPage.getLiveCopy(thePage).getPath();
return data;
});
Please help