We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [chaos-tool-suite]

The module contains a set of APIs and tools to improve the developer experience.

Filter by
Sorted by
Tagged with
0
votes
1answer
457 views

How to redirect into a specific page variant

I installed panels, page manager, ctools and page manager redirect. I made a (panel) page say foo1 - admin/structure/pages/add with variant type Panel. In this I put 5 variants named foo1variant1, ...
1
vote
2answers
449 views

Multipage registration form with Ctools

I'm trying to follow the tutorial on multipage user registrations at http://www.grasmash.com/article/building-multistep-registration-form-drupal-7-using-ctools, but I'm doing something wrong. As it's ...
0
votes
1answer
464 views

Entity form in ctools modal popup, whilst passing in values from current node

I need to open an entityform in a modal popup. I have got this working using 'Modal operations'‎ and 'Modal forms' modules following this guide: http://julian.pustkuchen.com/en/comment/reply/599. My ...
0
votes
1answer
488 views

Ctools content type not responding to form api ajax callback

I am using a ctools content type plugins to render a custom form that will have only one submit button. The submitbutton will switch an eck entity field (boolean) from 0 to 1 and back (if pressed ...
1
vote
1answer
464 views

Zend Optimizer+ error with Drupal 7

Can an anyone help me.I am getting the following error while running my drupal 7 application Fatal error: Cannot redeclare function views_views_plugins() (previously declared in /var/www/vhosts/cibi....
0
votes
1answer
674 views

ctools_modal_render() in a condition

I have the following code in my custom.module (using it in hook_init()): if ($js) { // Required includes for ctools to work: ctools_include('modal'); ctools_include('ajax'); } if (...
0
votes
1answer
495 views

Node Form Not submitting on ctool modal

I have a custom form, on submission of which I am calling ctools modal with a node form(content type: turn). Code for Custom Form. function _my_module_name_files_listing_form($form, &$...
1
vote
1answer
591 views

Node Edit Form in CTools modal

I added node ADD form in ctools modal window and ctools autosubmit functionality . So far so good, but my goal is to return node EDIT form when autosubmit triggered. Now modal callback function looks ...
0
votes
1answer
651 views

How to display the profile page in Modal window

By using ctools, i am able to display a form in modal window. Now i wish to display a page(the profile page) in modal window. Below is the sample code (call by menu page callback) to display a html ...
5
votes
2answers
596 views

Adding Contextual Links to Ctools Custom Content Type Plugin

Ctools custom content type called Custom Panes shows contextual links when you have access permission and you hover over the pane (much like a block shows the contextual links) which allows you to ...
2
votes
1answer
634 views

RSS not appearing in meta tag

An RSS-feed on my site doesn't show up in the HTML <head> as it is supposed to, which makes it very difficult to find. Here's my situation: A view is displaying the latest blog posts. This view ...
1
vote
2answers
692 views

Get path of Page Manager page

Basically I have created a page and it shows up fine. When I do a arg or current_path on that page it shows as a 404 path, not the one defined in the page. current_path() => error-404 $_GET[q] =&...
0
votes
0answers
105 views

Instructions for custom panels content types

I want to port a website from D7 to D8 that is based on panopoly and makes heavy use of custom ctools content type plugins as well as dynamic argument handling. I didn't find much useful information ...
2
votes
1answer
864 views

ctools modal form file upload is not working

I am trying to use ctools modal form to edit node form. This form is containing a file field. The Form is rendering properly. When I try to upload a file on clicking upload button, file field has been ...
3
votes
2answers
1k views

Why is redirect after login not working?

I use Ctools Modal to show the login form to users in an overlay. If a user enters right data then he is logged in and the page is refreshed. The code: function login_overlay_menu() { $items['...
1
vote
2answers
768 views

How to prevent closing ctools modal window with ESC?

I am using ctools modal window to edit some records with Form API. How can I prevent closing window with ESC key and the default close button?
0
votes
1answer
873 views

Error: Syntax error, unrecognized expression: <div id=“ctools-modal”>

I want to display a form in CTool modal dialog, but failing badly. When I click link to show modal form, ajax request is started: POST http://drupal.dev/my_mod/arg1/ajax/arg3 and returns: Error: ...
0
votes
1answer
812 views

Firing a Ctools Modal on a link click

Once again, I am stuck asking questions on CTools that people have asked a million times before. I have a view that displays a list of custom-developed entities (built with ECK) and each one has a ...
0
votes
1answer
24 views

Create a modal popup

I want to show a modal popup in drupal 7. On searching the web I came to know that it can be done using the ctools module itself. Here is the code I tried: function codeexpertz_menu() { $items['...
1
vote
1answer
329 views

Modal form with CTools opened in several different pages

I have a working module which opens a modal form with CTools. However, I must use the URL example.com/mymodule/page . There the module creates the link which opens the modal window with the form. How ...
2
votes
1answer
405 views

Displaying Webforms on Content Types in Page Manager/Panels

The Webform module allows for a webform to be attached to each Content Type of the site. I can "Enable webform functionality" on my Page and Blog Content types and don't need to use a separate "...
0
votes
1answer
564 views

Add popup within the ckeditor dialog box?

Here is the scenario. I had added a custom plugin in ckeditor. The plugin provide a button on the editor menu and when we click on that button ckeditor dialog box opens up with a text field and and a ...
0
votes
0answers
7 views

Ctools modal for node view - Node template does not get called

I wanted to display node view in popup through ctools modal. For which I have created a menu path modal/%ctools_js/%node and in the menu callback below code is defined: if ($js) { ctools_include(...
0
votes
1answer
24 views

Modal dialog doesn't work

I want to display ctools modal. I tried the following code. /** * Implements hook_menu(). */ function my_module_menu() { $items['my_module/%ctools_js/test-page'] = array( 'title' => 'Demo ...
0
votes
2answers
437 views

storing value in session with ctools wizard

I have created a multi-step form using Ctools wizard and its working fine. In multi step form, there is only images, so user will select the image and click on "Continue" button for next step. In the ...
0
votes
0answers
9 views

Harmonizing output from Views, Views Content Panes, Panels, and Panelizer in 7.x

I'm having some trouble harmonizing Views, Views Content Panes (ctools), and Panels with Panelizer on Drupal 7. I have a working prototype, but the problem is that I have to repeat the field output ...
0
votes
0answers
36 views

Form in ctools modal not submitting

I have a form (table with checkboxes) created using theme_tableselect. The form is appearing fine with checkboxes. I need to show confirmation popup/modal before processing the checked rows. I am ...
1
vote
1answer
98 views

I can't edit Panel variants

I think this may have happened when upgrading to Drupal 8.5.x, but I can no longer edit a panel variant. I can add a new variant and seem to be offered the typical layout, content, etc., but nothing ...
0
votes
0answers
28 views

ECK form in ctools modal doesn't behave in a familiar way

I use extensively ctools modal for entity creation/editing. I'm now integrating an ECK entity but the behavior is not consistent with other entity types (node, group, etc.) Typically when saving an ...
0
votes
1answer
174 views

ctools with panels colon issue IIS

When using Panels module I have noticed that one of the ajax calls is creating an url with colon inside : For Example : dev-www.redbusbingo.com/panels/ajax/editor/select-content/panel_c %3A = : ...
0
votes
1answer
85 views

How to call ctools modal window from mycustom.tpl.php?

I need to show a modal window on click from my mycustom.tpl.php Here is my code in mycustom.tpl.php <a href="/modal/nojs" class="ctools-use-modal ctools-use-modal-processed">False Positiv1e&...
0
votes
0answers
380 views

How to access an Ajax callback return value?

First a confession: I did not write the JavaScript reproduced below. Unfortunately, I am a rookie JavaScripter, and this script was scavenged from another project and slightly adapted by me. The ...
1
vote
1answer
932 views

Javascript not loaded in loading ctools modal

I have a some modal forms, the link of those embedded in views result, link are somethings linke share/nojs/2 , I register a menu in callback of the links, It work correctly for root user, but I ...
0
votes
0answers
36 views

How do I use EntityQueue's API

I'm trying to tie EntityQueue permissions into Organic Groups, similar to what was done with Smartqueues for Organic Groups (https://www.drupal.org/project/smartqueue_og ) but EntityQueue's API does ...
1
vote
0answers
155 views

How to change the node/add modal form css

I'm using the drupal modal system to create popups to add content, Hello, I'm working in a D8 project. The problem is that with the ajax the system add a width of 300px to the modal window, and I'd ...
1
vote
0answers
47 views

How to return values to widget form from view in ctools popup?

I'm writing custom field type and widget based on it. It allows to create custom entities from node page and add node references on existing nodes. There are no problems with custom entities they ...
2
votes
1answer
2k views

Show a ctools modal after form submit

I have a form: //... $form['submit'] = array( '#type' => 'submit', '#value' => t('Sumbit'), ); I need when this form is validated and submitted then show a ctools modal. This is my ...
0
votes
0answers
213 views

Validation not working on form in Modal using cTools in Drupal 7

I have a form which I am calling in popup modal using cTools, I added some validation rules in custom JavaScript file but those validations are not working and form is getting submitted, though ...
0
votes
1answer
88 views

Update entity ref field in parent form with new node created in ctools modal

I have a node_add form for Foo node-type with an entity reference field to Bar node-type. I'm trying to allow users to create Bar nodes inline from the Foo create form. So far I've been able to get ...
1
vote
0answers
39 views

Custom entity with existing data

I'm looking into creating a Drupal 7 custom entity for panels pages created with ctools Page Manager, in order to index this content with the Search API. An existing project, Page Manager Search, ...
0
votes
2answers
2k views

Fatal error after disabling ctools

I was getting fatal error to do with ctools along the bottom of each page of my site. To try to fix the issue I logged in as admin, and disabled 3 ctools modules in my website: Custom Content panes ...
1
vote
0answers
482 views

How to use a content entity form as step in a ctools wizard?

Update I got an example working at least to the point where a form is viewed. But there are still lots of issues, like the AJAX in the form not working and also the Next/Prev buttons do nothing. If ...
0
votes
1answer
219 views

How to override a ctools plugin from another module

I want to modify some logic of a ctools plugin defined in the entityqueue module. The file that contains the ctools plugin definition I want to modify is: /entityqueue/plugins/entityreference/...
2
votes
0answers
142 views

Text_format field value not retained in form

I am using Ctools to generate a popup and I'm loading my form inside it. In order to use a textfield with youtube link embedding and image uploading, I am using WYSIWYG module with CKeditor library. ...
3
votes
1answer
175 views

Page Manager on a variant of the node url

I have overriden the default /node/%node layout using panels and the page manager, now I need to add some different content when the URL is /node/%node/step2. I have added a variant, and on the ...
0
votes
2answers
556 views

Drupal 7: Display latest articles by an author with bio

I have a content type called "Author" and have an author field on other content types which has a reference to the "Author" CT. (e.g. News Article having an author field) The "Author" CT has these ...
0
votes
5answers
2k views

Ctools wizard multistep form: Back button should remember entered data

I am building a multistep form using ctools, basically following this approach. Now I want the following behaviour: user is at step 1 enters data for step 1 clicks continue and gets to step 2 enters ...
0
votes
1answer
35 views

Wanna save text_format custom form in comment

I'm using a custom form in CTools Modal to alter comment. $form['subject'] = array( '#type' => 'textfield', '#title' => t('Title'), '#default_value' => $comment->subject, ); $...
-1
votes
1answer
2k views

Ajax modal form window not loading

I already had success in ajax loading a form into a modal window with Ctools but now it fails and I do not why. Maybe someone can help me?! The problem: I create a link on a page which should open a ...
1
vote
1answer
199 views

Composer error with Ctools package

I'm trying to update my site using composer. I was previously using the Composer Manager module, but I've removed this as it's no longer supported, and composer support is built into core. I'm now ...