Hi,
Firstly, I love the combination of Omega and Delta. Very awesome stuff.
My issue is with Delta Blocks and putting the page title into a block when viewing a Views-generated page. In general, I love the ability to do this, since it allows me to take things like messages, help, and tabs, and position them where I want in relation to the page title.
When the page title is in a block on a Views page, the contextual link that normally allows one to "edit view" is not available, since the "normal" page title isn't viewable. The only contextual link available with the page title is "configure block", which makes sense. (This isn't an issue on a non-Views page, since the Tabs are there in their own block.)
The issue seems to be a result of the contextual link wrapper being tied to the page title element in a "normal" page display situation. (That's why I'm not quite sure if this is a bug report or support request, since I'm not sure if Delta can do anything about that.) The same result happens if I keep the normal page title enabled, but check the "hide via css" box in the theme settings.
Is there any way for Delta Blocks to make the contextual link wrapper be tied to, say, the block-system-main div, so that it's tied to the block of main content itself, rather than the h1 page title element?
It's not a huge deal, but during development, it would sure speed things up to be able to edit the view using the contextual link. I can always just leave the normal page title enabled too (during development), but I think it would be a great UI thing to be able to have the contextual link appear even when the Page Title is removed from its normal position and put into a block.
Thanks for this amazing theming system - it's now the base for all my sites going forward!
Comments
Comment #1
pjcdawkins commentedI have the same issue.
Comment #2
Chim commentedBeen looking into this and it's not easy to do. HOOK_block_view_alter doesn't contain enough information to create the urls for the contextual links.
I opted to solve this with javascript, which I thought reasonable, as the contextual links don't appear if javascript is turned off.
The following snippet takes the items in the primary tabs (e.g. view, edit) and adds them to the page title blocks contextual links...
Add the snippet to a js file included by your theme.
This may not be the exact solution you're after, for example if you're not showing the primary tabs to the administrator user.
Comment #3
bradallenfisher commentedThis snippet did not work for me. I can confirm the js is being loaded into the page, however i am still only presented with the configure block link.
Is there any chance this will see any love?
I agree this is minor. However, it would be nice if there was logic for appending links to another part of the view container when a delta title block is present.
Comment #4
bradallenfisher commentedSorry... I see what is going on now.
That code adds local tasks to the delta page title contextual filter.
I believe that the request is to add "Edit View" links to the delta page title contextual filter, or append the "Edit View" links to the body of the view.
Otherwise using this module makes you have to go into the views list every time you need to edit a view.
Again not urgent but i believe the OP wanted something different than what chim has provided.