- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Hello Jonas,
Are you able to preview these content in the console, via the publishing ?
Can you try to use the ncm.publishing.TransformFromId method ? In this case, you"ll have to give the ncm:publishing name (ns:name format) but also, the model name from the publishing (the one you gave in the Transformation models part, when you setup the type of tranformation (xsl or jst), the output format and then the XSL or JST to use) and for the third parameter, you have to give the content in a particular format : the content schema name (the one you created for your content, like 'ncm:content'), a pipe '|' and the id of the content.
It should be something like this :
<%
var content = ncm.publishing.TransformFromId('cus:myPublishing','HTML','cus:myContent|123456');
%>
<%==content[1]%>
This is what the console does when it displays preview from the content view.
Cédric
Views
Replies
Total Likes