https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292009-02-25T20:14:28ZRedmineRedmine - Feature #2840: Allow My Page blocks to be added to from a pluginhttps://www.redmine.org/issues/2840?journal_id=76412009-02-25T20:14:28ZBrad Beattie
<ul></ul><p>I'm definitely on board with this one. I'm finding that few people in my Redmine instance are using <em>My page</em>. If it could be augmented via plugins to suit their needs, that'd be sweet. :)</p> Redmine - Feature #2840: Allow My Page blocks to be added to from a pluginhttps://www.redmine.org/issues/2840?journal_id=76422009-02-25T21:37:13ZMischa The Evil
<ul></ul><p>+1 ;)</p> Redmine - Feature #2840: Allow My Page blocks to be added to from a pluginhttps://www.redmine.org/issues/2840?journal_id=76772009-02-26T16:37:36ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Category</strong> set to <i>Plugin API</i></li><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li><li><strong>Target version</strong> set to <i>0.9.0</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p>Feature added in <a class="changeset" title="Allow My Page blocks to be added to from a plugin (#2840). Partials must be placed under the app..." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/2529">r2529</a>. Let me know what you think.</p> Redmine - Feature #2840: Allow My Page blocks to be added to from a pluginhttps://www.redmine.org/issues/2840?journal_id=77882009-03-04T02:02:55ZBrad Beattie
<ul><li><strong>File</strong> <a href="/attachments/1627">patch.txt</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/1627/patch.txt">patch.txt</a> added</li></ul><p>Mm. I like. Ran into one issue though. I wrote a plugin that requires custom CSS.</p>
<pre>
<% content_for :header_tags do %>
<%= stylesheet_link_tag 'schedules', :plugin => 'redmine_schedules' %>
<% end %>
</pre>
<p>This code is fine when the page loads and the widget is there, but the CSS isn't included when the widget has been just added (before you hit save). I've attached a patch that would allow style and script additions to the page.</p>
<p>Does this work for you?</p> Redmine - Feature #2840: Allow My Page blocks to be added to from a pluginhttps://www.redmine.org/issues/2840?journal_id=79282009-03-09T16:21:51ZBrad Beattie
<ul></ul><p>Also, there seems to be an issue with this implementation. I can't place any custom my page blocks in either the left or right content containers. If I do and hit save, it just appears in the top container.</p> Redmine - Feature #2840: Allow My Page blocks to be added to from a pluginhttps://www.redmine.org/issues/2840?journal_id=121042009-11-15T13:47:57ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li></ul><p>Brad Beattie wrote:</p>
<blockquote>
<p>This code is fine when the page loads and the widget is there, but the CSS isn't included when the widget has been just added (before you hit save). I've attached a patch that would allow style and script additions to the page.</p>
</blockquote>
<p>Shouldn't you patch <code>app/views/my/page_layout.rhtml</code> instead of <code>page.rhtml</code> ?</p>
<blockquote>
<p>Also, there seems to be an issue with this implementation. I can't place any custom my page blocks in either the left or right content containers. If I do and hit save, it just appears in the top container.</p>
</blockquote>
<p>I'm able to move custom blocks to the right or left after they have been added.</p>
<p>I'm closing this ticket since the feature is added.<br />Please open a new ticket if I missed anything.</p>