I have a folder, which has subfolders and components.
For
For example, Main folder name as 030 Main
, which has subfolders with names archive
,not used
,100 mango
,120 apple
,150 cake
,trash
and:
100 mango
120 apple
150 cake
archive
not used
trash
There are also some components within the 030 Main
.
Now iI want to retrieve only the components which uses a specified schema from onlycertain subfolders 100 mango
,120 apple
,150 cake
.(i.ein bold above):
100 mango
120 apple
150 cake
I don't need any components from archive
,not used
,or trash
andnor the components within the 030 Main
.)
TriedI tried something like below, First had putfirst with a filter on the folder structure (iI got tcm id's of archive
,not used
,100 mango
,120 apple
,150 cake
,and trash
) then.
Then I checked for condition if folderthe folder's tcm id ismatches (100 mango,
, 120 apple,
, or 150 cake
).
Then if
If this condition is true put, I use a component filter andto get all the components with specified schema.
But here in var idin
I'm still getting the components present in archive
, not used
,trash
.