plainblack.com
Username Password
search
Bookmark and Share

    

Re: SiteIndex logic

User patspam
Date 9/25/2009 1:35 am
Views 354
Rating -1    Rate [
|
]
Previous · Next
User Message
patspam
Ah, Rory beat me to it :)

On Fri, Sep 25, 2009 at 4:34 PM, Patrick Donelan <pat@patspam.com> wrote:
I'm trying to decipher how the SiteIndex.pm content handler determines which pages get added to its output. The following command is what builds the asset list:

    my $pages  = WebGUI::Asset->getRoot($session)->getLineage(["self","descendants"],{

Starting at the root node, return the root and all descendants that match the following constraints..

        returnObjects      => 1,

Instantiate and return objects rather than just assetIds..

        includeOnlyClasses => ["WebGUI::Asset::Wobject::Layout"],

Only include Page Layout assets..

        whereClause        => "assetData.groupIdView = 7",

Where "Who Can View" is set to "Everyone" (groupId == 7)

        limit              => 20000

And at most return only 20,000 items.

    });

You can run the same query from wgd via:
wgd ls --recursive --filter '%groupIdView% ~~ 7' /

Patrick



Back to Top
Rate [
|
]
 
 
    



© 2012 Plain Black Corporation | All Rights Reserved