Skip to main content
added 1006 characters in body
Source Link
Saurabh Gangwar
  • 6.5k
  • 1
  • 16
  • 32

If a follow the whole conversation rightAs you answer, you did not do any custom templating code and just use the Default Finish Action TBB.

Assuming:

1.you are publishing CPs embeddedusing Tridion supplied “Default Finish Action TBB” on the page using static CT and CPs are coming properly only on Preview.

one2.In CT you have written proper code to render the content of the many casesComponent.

Now, I suspect you could be renderingdon’t think the CP selectively“Default Finish Action TBB” will render any content for Previewingyou.
Check the details about this TBB here (Login Required)

CanSo you check your Templating code for something like belowneed to add a TBB to the Page Template, in which renders the component presentations on the page.

Of course you can do the component presentation preview on the page as PT has no role in it and only CT is used to display the output (though, I am still surprised you are checkinggetting the preview for the page)

Please add a TBB (to render mode ofComponentPrasentations) on the engine?Page Template like a DWT TBB having code like below:

if (<!engine.RenderMode.Equals-- TemplateBeginRepeat name="Components" -->
@@RenderComponentPresentation(RenderMode.Publish))@@
<!-- TemplateEndRepeat -->

The above conditions is true if you are not in publish mode(means Preview Mode). so any rendering code underI hope, this condition will only execute for Preview mode not publish. and you won't get the rendered content after publishing but in previewhelps.

If a follow the whole conversation right, you are publishing CPs embedded on the page using static CT and CPs are coming properly only on Preview.

one of the many cases, I suspect you could be rendering the CP selectively for Previewing.

Can you check your Templating code for something like below, in which you are checking the render mode of the engine?

if (!engine.RenderMode.Equals(RenderMode.Publish))

The above conditions is true if you are not in publish mode(means Preview Mode). so any rendering code under this condition will only execute for Preview mode not publish. and you won't get the rendered content after publishing but in preview.

As you answer, you did not do any custom templating code and just use the Default Finish Action TBB.

Assuming:

1.you are using Tridion supplied “Default Finish Action TBB” on the page.

2.In CT you have written proper code to render the content of the Component.

Now, I don’t think the “Default Finish Action TBB” will render any content for you.
Check the details about this TBB here (Login Required)

So you need to add a TBB to the Page Template, which renders the component presentations on the page.

Of course you can do the component presentation preview on the page as PT has no role in it and only CT is used to display the output (though, I am still surprised you are getting the preview for the page)

Please add a TBB (to render ComponentPrasentations) on the Page Template like a DWT TBB having code like below:

<!-- TemplateBeginRepeat name="Components" -->
@@RenderComponentPresentation()@@
<!-- TemplateEndRepeat -->

I hope, this helps.

added 279 characters in body
Source Link
Saurabh Gangwar
  • 6.5k
  • 1
  • 16
  • 32

If a follow the whole conversation right, you are publishing CPs embedded on the page using static CT and CPsCPs are coming properly only on Preview.

Hereone of the many cases, I suspect you could be rendering the CP selectively for Previewing.

Can you check your Templating code for something like below, in which you are checking the render mode of the engine?

if (!engine.RenderMode.Equals(RenderMode.Publish))

The above conditions is true if you are not in publish mode(means Preview Mode). so any rendering code under this condition will only execute for Preview mode not publish. and you won't get the rendered content after publishing but in preview.

If a follow the whole conversation right, you are publishing CPs embedded on the page and CPs are coming properly only on Preview.

Here, I suspect you could be rendering the CP selectively for Previewing.

Can you check your Templating code for something like below, in which you are checking the render mode of the engine?

if (!engine.RenderMode.Equals(RenderMode.Publish))

If a follow the whole conversation right, you are publishing CPs embedded on the page using static CT and CPs are coming properly only on Preview.

one of the many cases, I suspect you could be rendering the CP selectively for Previewing.

Can you check your Templating code for something like below, in which you are checking the render mode of the engine?

if (!engine.RenderMode.Equals(RenderMode.Publish))

The above conditions is true if you are not in publish mode(means Preview Mode). so any rendering code under this condition will only execute for Preview mode not publish. and you won't get the rendered content after publishing but in preview.

Source Link
Saurabh Gangwar
  • 6.5k
  • 1
  • 16
  • 32

If a follow the whole conversation right, you are publishing CPs embedded on the page and CPs are coming properly only on Preview.

Here, I suspect you could be rendering the CP selectively for Previewing.

Can you check your Templating code for something like below, in which you are checking the render mode of the engine?

if (!engine.RenderMode.Equals(RenderMode.Publish))