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

davidmolliere’s picture

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...

Pasqualle’s picture

those links should be visible only for users with "administer views" permission. Please check that the anonymous user does not have this permission.

monotaga’s picture

subscribing

AnotherHowie’s picture

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.

bdwelle’s picture

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 = "";
mrfelton’s picture

e.g.:

In a custom module:

/*
 * 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;
	}
}
doublejosh’s picture

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.

hass’s picture

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.

hass’s picture

Version: 6.x-1.0 » 6.x-2.x-dev
Status: Active » Closed (duplicate)