Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7664627
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T14:21:13+00:00 2026-05-31T14:21:13+00:00

In a TBB using the TOM.NET API I want to get a list of

  • 0

In a TBB using the TOM.NET API I want to get a list of pages which are published – basically I’m building a sitemap. I am trying to determine if a Tridion.ContentManager.CommunicationManagement.Page is published.

There doesn’t seem to be an IsPublished property or the IsPublishedTo method.

Is there a Filter condition I can add? E.g.

pageFilter.Conditions["Published"] = "true";

In response to comments:

I’m using the TOM.NET API and I want to get a list of pages which are published – basically I’m building a sitemap.

It seems like the PublicationEngine.IsPublished method is returning “true” if the page is published to the given target anywhere within the BluePrint hierarchy. This doesn’t seem like expected behaviour.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T14:21:15+00:00Added an answer on May 31, 2026 at 2:21 pm

    In this scenario where you have multiple Publications in the BluePrint, you can use the PublishEngine.GetPublishInfo() method against the page you are on and check if the Publication you are publishing from exists in the Publications returned from that method:

    IList<RepositoryLocalObject> rlos = structuregroup.GetItems(pageFilter);
    List<Page> pages = new List<Page>(rlos.Count);    
    foreach (RepositoryLocalObject o in rlos)
    {  
        Page p = (Page) o;
        bool isPublished = false;
        ICollection<PublishInfo> publishInfo = PublishEngine.GetPublishInfo(p);
        foreach (PublishInfo info in publishInfo)
        {
            if (info.Publication.Id.ItemId == p.Id.PublicationId)
            {
                isPublished = true;
            }
        }
    
        if(p != null && isPublished)
        {
            pages.Add(p);
        }
    }
    

    You have to be aware that there was a bug in this method where it will always return the current Publication that you are publishing from. This has been fixed in the Hotfix CM_2009.1.74835. You need to apply that otherwise the code above won’t work correctly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to get a thread-pool behavior using TBB. But whenever I read documents
I am currently trying to represent a 2D array using tbb::concurrent_vector<T> . This 2d
I am trying to parallelize some Image Matching code written in OpenCV using TBB.
I want to use TBB threads in C++ and want to use tbb_thread API.
Does anyone know how to modify the thread scheduling (specifically affinity) when using TBB?
Intel's Threading Building Blocks (TBB) open source library looks really interesting. Even though there's
I have got this problem: Find the first element in a list, for which
Where to get intel's Tbb for gcc on windows? I've checked here: http://threadingbuildingblocks.org/ver.php?fid=182 but
I'm trying to traverse a tree via TBB tasks and continuations. The code is
Is there a way that I can (using tbb from intel) specify the number

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.