Developer forum

Forum » CMS - Standard features » Previewing limited pages

Previewing limited pages

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

I have a page structure with a few pages that won't be visible until next week using the publication period. Some of those pages in turn contain paragraphs with a publication period in the future.

Managing and previewing this content introduces some issues:

  • I can successfully request a future page when I am logged in to the backend. However, I don't see the future paragraphs as they are not active yet. How do I validate / test this content without making it live?
  • Links to pages that aren't active yet come up as Default.aspx?ID=0, leading to broken links. This in turn makes testing these impossible.

Are there any solutions for this? The preview functionality doesn't give me what I need unfortunately.

Thanks!

Imar


Replies

 
Nicolai Pedersen
Reply

Nope. Does not exist I am affraid. In old days, there was a preview=true that gave you all on that page published or not. But not anymore.

 
Nicolai Pedersen
Reply

What links to pages? Where do you enter them? If in the text editor the id is there, so it must be a field - but which one?

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Under the covers we use GetPageIdByNavigationTag to get the ID. I looked at the source code and found this:

public int GetPageIdByNavigationTag(string navigationTag)
{
    if (Pageview is object)
    {
        var p = Services.Pages.GetPageByNavigationTag(Pageview.AreaID, navigationTag);
        if (p is object && p.Published)
        {
            return p.ID;
        }
    }

    return 0;
}

 
Nicolai Pedersen
Reply
This post has been marked as an answer

That was introduced with the bug TFS#42931 that thinks that it is a problem that unpublished pages can be linked to...

I'll remove it again!

Votes for this answer: 1
 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply
This post has been marked as an answer

Hi,

The issue will be fixed by Feature 601: Previewing limited pages submitted. Thanks for observing.

BR, Oleg QA

Votes for this answer: 1

 

You must be logged in to post in the forum