Feature #2210
Sidebar access from other hooks
0%
Description
This is not obvious but in Ruby you can add sidebar to pages, which do not have the one, using something like:
<% content_for(:sidebar) do %>
...
<% end %>
Of course, this can’t be done in the Hooks Manager using HTML! At least for now...
But maybe we can implement this somehow? For example:
Another option is to support this in the templating language (see #2209).
Related issues
History
#1 Updated by Andriy Lesyuk over 10 years ago
- Status changed from Incomplete to Open
Just a note: not every hook is able to add the content for sidebar! So, I guess, a new hook property indicating this should be added.