Hey guys,
The current task I’m working on involves deleteing the content of a Standard Page and replacing it with new content. I’m having a few problems locateing the assets to delete. I know where they are but I need to better target them.
I’ve been using;
$page_children = &$GLOBALS[‘SQ_SYSTEM’]->am->getChildren($page->id, “bodycopy_div”);This, however, retrieves all the bodycopy_div assets no matter how deeply nested. e.g. I have a page_standard with Page Contents. As a child asset of this page_standard I have another page_standard. The above code also retreives the bodycopy_div of this page_standard asset. I don’t want to delete this one though.
My question: Is there a way to retreive/identify assets along a specific path?
e.g. I have a page_standard and below that a bodycopy and any number of other assets that may also have bodycopy_div’s. I just want the bodycopy_div’s of the bodycopy directly below the initial(selected) page_standard.