Access additional DataPipeline from Razor view in

2019-07-23 12:50发布

Is it posible to access another pipeline data from razor script already conected to custom or default data pipeline?

(multiple pipelines in one razor view)

eg: My custom data pipeline give me some values and base on this values I want to get some other custom pipeline and used its values/lists in conditional block of this razor script?

1条回答
ゆ 、 Hurt°
2楼-- · 2019-07-23 13:25
var list = App.Query["Query-Name"]["Stream-Name"].List;
foreach(var item in AsDynamic(list)){
    <div>@item.Title</div>
}

Also a good sample is: Using App Data Outside of 2sxc

查看更多
登录 后发表回答