have you ran into the problem when defining a template in a component query?
When using DWT my call looked like this
<!-- TemplateBeginRepeat name="allItemsInFolder" -->
@@RenderComponentPresentation()@@
<!-- TemplateEndRepeat -->
This worked because I set the template in the component query. when I try to do it via razor, like this :
@foreach (var c in Package.allItemsInFolder){
@c.RenderComponentPresentation()
}
It thinks that RenderComponentPresentation is a FieldName and wont render it correctly, there error I get is
DynamicItemFields: Key 'rendercomponentpresentation' Not Found In ItemFields
Any advice would be great!