Posted by krwester on March 12, 2009 at 11:29am
Jump to:
| Project: | Insert View |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (duplicate) |
Issue Summary
I have used insertview to put a view into a page. Unfortunately the hover links are showing (not as hover) even for the anonymous user. I turned off the hover links view in the views settings, but they still show up.
Any ideas?
Comments
#1
I had the same issue and found out that there is an option in the tools tabs in Views (/admin/build/views/tools) to turn off the links.
You have to select the checkbox "Do not show hover links over views".
It's not as good as being able to turn them off on a per view basis (at last I don't know that you can), or better turn them off only when inserted in a newsletter but it's a way to get your views in newsletter to be usable...
#2
those links should be visible only for users with "administer views" permission. Please check that the anonymous user does not have this permission.
#3
subscribing
#4
I am getting this too, after an upgrade from 5.19 to 6.13, and Insert Views 6.x-1.0. Only the admin role has Administer Views, and the "Do not show hover links over views" is turned on.
#5
I agree this is an issue. Ideally, the insert_view calling syntax would include an option to disable the hover links. For my purposes, I never want them in inserted views, so I hacked the module and added a single line to the _insert_view_substitute_tags() function:
94 $view = views_get_view($viewname);95 $view->hide_admin_links=1; // added to disable hover links
96 $replace = "";
#6
e.g.:
In a custom module:
<?php/*
* Implementation of hook_views_pre_render().
*
* Remove the admin hover links.
*/
function mymodule_views_pre_render(&$view) {
switch ($view->name) {
case 'mymodule_view_1':
case 'some_other_view_id':
$view->hide_admin_links = 1;
break;
}
}
?>
#7
I'm having this same problem too. Seems to have been fairly sudden... but that's how it always seems!
(I did recently rebuild the node_access table while uninstalling Content Access, but that's a node permission table.)
I am using Boost, so it might be a problem with that.
#8
My feeling is that #1031784: Disable unusual hover links for compatibility with other modules like linkchecker shows that there are other issues, too. merlinofchaos also commented that insert_view should always disable the admin hover links.
#9
There is a patch in #1031784: Disable unusual hover links for compatibility with other modules like linkchecker. Marking therefore as duplicate.