I dont know whats going on here but i can see any of the fasttoggle links when I create a simple content view.
This is my view:
$view = new view;
$view->name = 'test';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'test';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
/* Display: Master */
$handler = $view->new_display('default', 'Master', 'default');
$handler->display->display_options['title'] = 'test';
$handler->display->display_options['access']['type'] = 'perm';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['query']['options']['query_comment'] = FALSE;
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['pager']['options']['items_per_page'] = '10';
$handler->display->display_options['style_plugin'] = 'default';
$handler->display->display_options['row_plugin'] = 'fields';
$handler->display->display_options['row_options']['hide_empty'] = 0;
$handler->display->display_options['row_options']['default_field_elements'] = 1;
/* Field: Content: Title */
$handler->display->display_options['fields']['title']['id'] = 'title';
$handler->display->display_options['fields']['title']['table'] = 'node';
$handler->display->display_options['fields']['title']['field'] = 'title';
$handler->display->display_options['fields']['title']['label'] = '';
$handler->display->display_options['fields']['title']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['title']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['title']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = 0;
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = 0;
$handler->display->display_options['fields']['title']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['title']['alter']['trim'] = 0;
$handler->display->display_options['fields']['title']['alter']['html'] = 0;
$handler->display->display_options['fields']['title']['hide_empty'] = 0;
$handler->display->display_options['fields']['title']['empty_zero'] = 0;
$handler->display->display_options['fields']['title']['link_to_node'] = 1;
/* Field: Content: Publish Link (Fasttoggle) */
$handler->display->display_options['fields']['publish_node']['id'] = 'publish_node';
$handler->display->display_options['fields']['publish_node']['table'] = 'node';
$handler->display->display_options['fields']['publish_node']['field'] = 'publish_node';
$handler->display->display_options['fields']['publish_node']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['publish_node']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['publish_node']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['publish_node']['alter']['external'] = 0;
$handler->display->display_options['fields']['publish_node']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['publish_node']['alter']['trim_whitespace'] = 0;
$handler->display->display_options['fields']['publish_node']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['publish_node']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['publish_node']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['publish_node']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['publish_node']['alter']['trim'] = 0;
$handler->display->display_options['fields']['publish_node']['alter']['html'] = 0;
$handler->display->display_options['fields']['publish_node']['element_label_colon'] = 1;
$handler->display->display_options['fields']['publish_node']['element_default_classes'] = 1;
$handler->display->display_options['fields']['publish_node']['hide_empty'] = 0;
$handler->display->display_options['fields']['publish_node']['empty_zero'] = 0;
$handler->display->display_options['fields']['publish_node']['hide_alter_empty'] = 0;
/* Field: Content: Promote Link (Fasttoggle) */
$handler->display->display_options['fields']['promote_node']['id'] = 'promote_node';
$handler->display->display_options['fields']['promote_node']['table'] = 'node';
$handler->display->display_options['fields']['promote_node']['field'] = 'promote_node';
$handler->display->display_options['fields']['promote_node']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['promote_node']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['promote_node']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['promote_node']['alter']['external'] = 0;
$handler->display->display_options['fields']['promote_node']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['promote_node']['alter']['trim_whitespace'] = 0;
$handler->display->display_options['fields']['promote_node']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['promote_node']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['promote_node']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['promote_node']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['promote_node']['alter']['trim'] = 0;
$handler->display->display_options['fields']['promote_node']['alter']['html'] = 0;
$handler->display->display_options['fields']['promote_node']['element_label_colon'] = 1;
$handler->display->display_options['fields']['promote_node']['element_default_classes'] = 1;
$handler->display->display_options['fields']['promote_node']['hide_empty'] = 0;
$handler->display->display_options['fields']['promote_node']['empty_zero'] = 0;
$handler->display->display_options['fields']['promote_node']['hide_alter_empty'] = 0;
/* Sort criterion: Content: Post date */
$handler->display->display_options['sorts']['created']['id'] = 'created';
$handler->display->display_options['sorts']['created']['table'] = 'node';
$handler->display->display_options['sorts']['created']['field'] = 'created';
$handler->display->display_options['sorts']['created']['order'] = 'DESC';
/* Filter criterion: Content: Type */
$handler->display->display_options['filters']['type']['id'] = 'type';
$handler->display->display_options['filters']['type']['table'] = 'node';
$handler->display->display_options['filters']['type']['field'] = 'type';
$handler->display->display_options['filters']['type']['value'] = array(
'product_display' => 'product_display',
);
$handler->display->display_options['filters']['type']['group'] = 0;
/* Display: Page */
$handler = $view->new_display('page', 'Page', 'page');
$handler->display->display_options['path'] = 'test';
This is what i got on my html
<div class="views-field views-field-publish-node">
<span class="views-label views-label-publish-node">Publish Link (Fasttoggle): </span>
<span class="field-content"></span>
</div>
<div class="views-field views-field-promote-node">
<span class="views-label views-label-promote-node">Promote Link (Fasttoggle): </span>
<span class="field-content"></span>
I used the last dev and also beta2. Any thought why is this happening?
Comments
Comment #1
derjochenmeyer commentedAttached patch fixes the fasttoggle links in views.
It also addresses an issue (ajax errors) when using fasttoggle with Drupal installed in a subdirectory.
Comment #2
derjochenmeyer commentedJust replaced a TAB with spaces.
Comment #3
derjochenmeyer commentedComment #4
derjochenmeyer commentedBetter title, ...
Comment #5
Prasad W commentedI used fasttoggle in views for nodes like promote a link, but I want to add fasttoggle to user status field. There is no option to toggle user status. How can i get it?
Comment #6
derjochenmeyer commentedDon't hijack this issue, please create a new one.
Comment #7
ari-meetai commentedTried your patch. Still getting error 500.
Have a look at the screenshot:
http://imageshack.us/photo/my-images/36/toogleerror.png
vanilla D7 installed on /drupal.
Comment #8
ari-meetai commentedChanged status and version.
Comment #9
nigelcunningham commentedThanks very much for the patch, and sorry for my slowness in responding. I've just tested and committed it to the git repo.
Regards,
Nigel
Comment #10
hlopes commentedFasttoggle is still displaying this behaviour in my D7 site.
Label outputs correctly, the link doesn't. Can't get it to do anything, actually.
Comment #11
nigelcunningham commentedWould you try current 7.x-dev, please?
Comment #12
jarodms commentedI tried the current DEV release. I'm not getting any errors, but the Publish/Unpublish links are not showing up in my view (logged in as user 1). Anyone else?
Comment #13
tjharman commented@jarodms What version, 6 or 7?
If 6, I have a bug open for this already here.
Comment #14
gianfrasoft commentedSame problem here...
Comment #15
gianfrasoft commentedhem...
Comment #16
nigelcunningham commentedThere are new configuration options - you now need:
Regards,
Nigel
Comment #17
gianfrasoft commentedSorry, this doesn't help me... :(
It seems in my installation something is missing.
1) This is my sidewide configuration:
(But I swear I saw other settings before installing the DEV version. Now I re-installed the stable version of this module but I can't see them too. Thoese were also useless: the fasttoggle field diddn't appear in views).
2) No content type setting about Fasttoggle.
3) Permissions are useless in my case: I'm logged as admin.
Thanks for your help!
Comment #18
uno commentedHas anybody been able to have working Fasttogle (7.12) links in Views, I (user/1) have done everything, reinstalled, tried dev version, activated all module options, set in General, Node and added fields in Views .. still have nothing usable.
Comment #19
les limLooks like the Views handler hasn't been updated since the re-factoring occurred between 7.x-1.1 and 7.x-1.2, which is why there's never any Views output for the field. Here's a patch that should get things going.
Note that this only applies to 7.x-1.2; dev appears to have diverged irreconcilably.
Comment #20
les limMight help if I actually upload the patch.
EDIT: don't use this one, use the one below this.
Comment #21
les limNew patch to fix class selectors not matching what's expected by the AJAX callback.
Comment #22
les limEh, I really should also set the initial "status" class on the link element, as well.
Comment #23
uno commentedPatch #22 adds "un/publish" option but "sticky" and "promote" are still empty. However, this is a step forward :)
Comment #23.0
uno commentedlast code refers to another view in table style format (same problem too)
Comment #24
nigelcunningham commentedThanks for the patch. I used it as a beginning, and committed changes to dev yesterday that (I believe) fix all views integration. Please test and let me know if I've missing something or erred.
Comment #25
nigelcunningham commentedComment #26
reallyordinary commentedJust installed dev version. Attempted to add a fasttoggle field to a view, but there aren't any. All the fasttoggle options in the "Add fields" modal are gone.
Also all the permissions are gone on the Permissions admin screen, except for "Administer Fasttoggle".
Comment #27
uno commented@reallyordinary
Make sure to delete old files prior to uploading new ones, and then clear caches.
Comment #28
nigelcunningham commentedYes, I do still need to do some work on the fields part of things after the big rework I've done in -dev. I'll try to get on to that soon. Feel free to prod me :)
Comment #29
nigelcunningham commented@reallyordinary: There are new per-content type settings that you need to enable. I'll add that info to that admin page as it has gotten other people too.
Comment #30
nigelcunningham commentedThe original issue was fixed; closing.