https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292014-09-12T05:21:20ZRedmineRedmine - Feature #17763: Ability to render multiple partials with view hookhttps://www.redmine.org/issues/17763?journal_id=585962014-09-12T05:21:20ZJean-Baptiste Barth
<ul></ul><p>Isn't it easier to add a "parent" partial that groups the other ones you'd want to render ? Maybe you can explain why this is needed.</p>
<p>Plus we need to have some tests if we ever want to merge this in.</p> Redmine - Feature #17763: Ability to render multiple partials with view hookhttps://www.redmine.org/issues/17763?journal_id=586002014-09-12T05:37:58ZIlya S
<ul></ul><p>It's easier, in case of multiple partials within one plugin, but if you have multiple plugins using the same hook - it's a problem.</p> Redmine - Feature #17763: Ability to render multiple partials with view hookhttps://www.redmine.org/issues/17763?journal_id=591022014-10-13T06:45:15ZIlya S
<ul></ul><p>any thoughts?</p> Redmine - Feature #17763: Ability to render multiple partials with view hookhttps://www.redmine.org/issues/17763?journal_id=591102014-10-13T18:25:49ZJean-Philippe Langjp_lang@yahoo.fr
<ul></ul><p>This patch assumes that we're rendering partials which is just one of the many #render options.<br />I'd like something that does not depend on that.</p> Redmine - Feature #17763: Ability to render multiple partials with view hookhttps://www.redmine.org/issues/17763?journal_id=591112014-10-13T19:04:22ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>File</strong> <a href="/attachments/12460">multiple_render.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/12460/multiple_render.patch">multiple_render.patch</a> added</li></ul><p>Here is another option, feedback is welcome. Basically, the syntax would be:</p>
<pre>
render_on :some_hook, :partial => "show_more_data"
render_on :some_hook, {:partial => "show_more_data"}, {:partial => "show_even_more_data"}
render_on :some_hook, {:partial => "show_more_data"}, {:inline => "<%= show_even_more_data %>"}
</pre> Redmine - Feature #17763: Ability to render multiple partials with view hookhttps://www.redmine.org/issues/17763?journal_id=591982014-10-18T08:10:33ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Tracker</strong> changed from <i>Patch</i> to <i>Feature</i></li><li><strong>Subject</strong> changed from <i>ability to render multiple partials with view hook</i> to <i>Ability to render multiple partials with view hook</i></li><li><strong>Category</strong> changed from <i>Core Plugins</i> to <i>Plugin API</i></li><li><strong>Assignee</strong> set to <i>Jean-Philippe Lang</i></li><li><strong>Target version</strong> set to <i>3.0.0</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p>Feature added in <a class="changeset" title="Ability to render multiple partials with view hook (#17763)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/13449">r13449</a>.</p> Redmine - Feature #17763: Ability to render multiple partials with view hookhttps://www.redmine.org/issues/17763?journal_id=593772014-10-24T18:50:35ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li></ul>