> Testing Center - Sandbox  
  Collaborative web publishing tools for not-for-profits

How do I automatically feed only select items to other slices?
01/30/2004

Through Value field on the Mapping page you can specify not only a new value, but also any AA  expression, which is unaliased - example:

<a  href="{source_href.....}">{source..........}</a>

 

In the Value field  you can specify, which items should be fed and which not. It is done by modifying the value of the ‘Status Code’ of the receiving slice, according to field in the feeding slice.
Status codes are: 1=active, 2=Holding, 3=Trash, 4=Do not fed)

 

An example set-up:

 

1) Set Feeding, as usual ('Slice Admin' -> 'Inner Node Feeds') (see feeding FAQ)

 

2) Go to 'Slice Admin' -> 'Mapping' and select the your source slice

 

 3) fill something like: {switch({category.......1})Enviro:1:4} for 'Status Code' and set FROM to '-- Value --'

 

 After this all items from the source slice with category 'Enviro' will be fed into Active ('Status Code' value=1). Other will not be fed ('Status Code' value=4).

 

Comments