#1 July 16, 2018 3:27pm

tsamant
Member
From: Chicago
Registered: May 14, 2015
Posts: 52

BigTreeAdmin updatePageParent

I'm back.

I might have to reorganize our existing set of pages—which amounts to scripting a large number of "move page" operations.

Is it correct to say that a single updatePageParent() call will accomplish a move-page? Also, I assume this method takes page ids?

Thanks,
Tushar

Offline

#2 July 16, 2018 3:28pm

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 970

Re: BigTreeAdmin updatePageParent

Yes, updatePageParent will move a page and all of its children to a new location in the page tree. The first parameter is the page ID, the second is the new parent ID.

Offline

#3 July 17, 2018 4:06pm

tsamant
Member
From: Chicago
Registered: May 14, 2015
Posts: 52

Re: BigTreeAdmin updatePageParent

Clear and simple. Thanks, Tim!

Offline

Board footer

Powered by FluxBB

The Discussion Forum is not available on displays of this size.