Developer forum

Forum » Dynamicweb 9.0 Upgrade issues » Itempublisher does not render item pages, that has the setting Hide in menu

Itempublisher does not render item pages, that has the setting Hide in menu

Niels Foldager
Reply

In DW8 it was possible to render item pages that was not visible in navigation by using the ItemPublisher. In DW9 the item pages must be "Published" before they are available in the GetLoop("ItemPublisher:Items.List"). I think is a bug and item pages should be rendered if the status is "Published" or "Hide in menu", but not if they are "Unpublished".

Best regards,
Niels Foldager


Replies

 
Nicolai Pedersen
Reply

Hi Niels

I'll have it checked out and sent it to QA. If we changed behavior it is probably not a good idea. And probably because someone thought that showing hidden pages was a bug.

It should probably be a setting if that is the case.

BR Nicolai

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply

Hi Niels,

I've checked the issue on my test environment based on last DW9.3.6 and see that item page page has 'Unpublished' or 'Hide in menu' state can be redered in Item publisher list properly. Please, find proof - https://www.screencast.com/t/DYug9v3VX

Perhaps, It was already fixed by related TFS 35326 'Unpublished items listed with item publisher' on one of previous release.

Please, comment if your conditions are differend against mine.  

BR, Oleg QA

 
Niels Foldager
Reply

Hi Oleg,

We are importing items as pages by using the ItemProvider. The reason why the item-loop is empty is that the field, PageHidden, is NULL in the Page-table after import. When updating an item-page, PageHidden is either 0 or 1 (the value is 1 when page is "Unpublished"). Another reason is that the setting "Select items under current page ..." no longer selects items from all levels under current page.

Best regards,
Niels Foldager

 
Morten Buhl Dynamicweb Employee
Morten Buhl
Reply

Hi Niels

I've added an item to the backlog to control PageHidden state in the item provider - TFS-42208

As for "Another reason is that the setting "Select items under current page ..." no longer selects items from all levels under current page."

If it ever did that it was a bug. As the documentation says: "By default, the item publisher will only publish items which are one level below the page with the item publisher app on. Check the include all child items to publish items from futher down the content tree."

/Morten Buhl, DW

 

You must be logged in to post in the forum