Developer forum

Forum » CMS - Standard features » RenderPageContent with ItemPublisher

RenderPageContent with ItemPublisher

António Ramos
Reply

Hi guys,

I faced a problem while embedding the content from a page with Item Publisher.

My item publisher was based on paragraph itens (they were in the same page) with the configuration set to "Select items under the current page", but with this configuration the item publisher was only rendering at the source page. 

Only after selecting the option "Select items under the following pages" and set the page, i was able to see the list in all pages (the tag RenderPageContent was at the master.html).

Anyone else faced with this situation too?

Best regards,

António Ramos

 

 

 

 


Replies

 
António Ramos
Reply

bump

 
Mikkel Ricky
Reply
This post has been marked as an answer

"Select items under the current page" selects items under the current page and not under the page on which the item publisher module actually exists. When using "Select items under the following pages" you lock the source page, and that's why you have to do it like this when you reuse the item publisher across multiple pages.

Rather than using @RenderPageContent in your template, you should consider using @RenderItemList to render a list of items directly in your template. See Item.Render (Item Publisher extension tag) for details and examples.

Best regards,
Mikkel

 

Votes for this answer: 1

 

You must be logged in to post in the forum