flaithbheartaigh / dynamic-delivery-4-tridion

Automatically exported from code.google.com/p/dynamic-delivery-4-tridion
Other
0 stars 0 forks source link

Render Single ComponentPresentation #51

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I'd like to loop through my componentpresentations and have some control in my 
view.
For instance: 'i want to put a row div around the first 3 cp's".

RenderCPByView requires me to specify what view i should use. But i don't want 
to bother my VIEW with that "LOGIC". This should be done in the 
ComponentPresentation Controller.

@Html.RenderComponentPresentation(cp)

Original issue reported on code.google.com by rikwilbr...@gmail.com on 26 May 2014 at 8:46

GoogleCodeExporter commented 8 years ago
Just looked a bit deeper in the RenderComponentPresentationByView and i just 
realised there it's also Plural: RenderComponentPresentation!S!ByView.

Original comment by rikwilbr...@gmail.com on 26 May 2014 at 8:51