If you are using Brail this was a bug I noted a bit ago when you use RenderSection(writer) overload and provide your own writer. Then pass that into the property bag for consumption in the view. Using Spark now though I haven't had this bug so can place the html where it should be in the view. I don't know about NV.
On Apr 15, 11:17 am, hammett <[email protected]> wrote: > You should use sections for that, right? Or maybe I didnt understand > the question. Can you post your intended viewcomponent's view code? > > > > On Wed, Apr 15, 2009 at 8:57 AM, Jan Limpens <[email protected]> wrote: > > to illustrate... > > > <div class="tile"> > > <div class="left" style="background-image: url(!{ImgSrc})"> > > <a href="!{Url}">!{Title}</a> > > </div> > > <div class="right"> > > <p class="article-link"> > > <a class="info bold no-underline" href="!{Url}">!{Title}</a> > > </p> > > <div style="display: none"> > > <a href="!{PopUpUrl}">Description</a> > > </div> > > <div> > > here should by body go! > > </div> > > </div> > > </div> > > > If I call Context.RenderBody inside Render(), it will render the body before > > the view and not where it is supposed to be. > > > 2009/4/15 Jan Limpens <[email protected]> > > >> Hello, > > >> did not find this in the docs: > > >> what's the equivalent of a layout's ${ChildOutput} in a viewcomponent? I > >> would want to avoid to have to put the whole complicated html of this > >> component into my code, just so I can can call RenderBody()... > > >> -- > >> Jan > > > -- > > Jan > > -- > Cheers, > hammetthttp://hammett.castleproject.org/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en -~----------~----~----~----~------~----~------~--~---
