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
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 ...
0
votes
1answer
26 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['...
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
25 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
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
37 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 ...
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
88 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
390 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 ...
0
votes
0answers
38 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
159 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
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
229 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
89 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, ...
1
vote
0answers
488 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
223 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
145 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. ...
0
votes
1answer
579 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
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
vote
1answer
202 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 ...
1
vote
0answers
228 views

How to display a node page in ctools modal?

Is there any way to display a node page in the ctools modal. I have searched for a contrib module but did not find one. I know the following code will display the content in ctools modal, but can't ...
1
vote
1answer
526 views

Add ctools processing for content loaded via ajax

I have a search result page where all the searched results are loaded using ajax call. For each result, there is a button which should open a form in the modal. The code snippet which is loading a ...
-1
votes
1answer
110 views

Can't get current user context in page panager [closed]

I'm using page manger with panel, and Rng module. I want a custom page for the registration page (the page to see the registrant information, provided by the Rng module) depending of the current user'...
0
votes
1answer
195 views

How to avoid losing custom CSS/JS on a form using Ctools Modal when Validation Errors Occur

I have a regular content type form that has been customized quite a bit with a form alter. I am wanting to see about getting that form in to a ctools modal window for the creation of that content. I ...
1
vote
1answer
646 views

How do I create a custom plugin?

Basically, I want to port a custom ctools plugin created for content type from Drupal 7 to Drupal 8. This is the code I want to port. function my_module_ctools_plugin_directory($module, $plugin) { ...
0
votes
1answer
47 views

Is there any integration of the Entity registration module with modal forms?

I'm using the Entity Registration module for events registration. I want to open the registration forms in the ctools modal. I checked the Modal forms module. But on the module page, I can see that ...
0
votes
1answer
150 views

How to add a modal which then opens a ctools modal?

I am trying to set up a modal that opens a ctools modal from inside it. IOW the user sees the first modal, clicks on a button inside that modal and it opens a second modal on top of the first modal. ...
1
vote
1answer
192 views

Programmatically rendering a Views pane with arguments from context

I'm trying to programmatically render a Views pane (ie. a Pane display of a view) with a taxonomy term as argument (passed in the pane context) The following code illustrate how the pane is rendered ...
1
vote
1answer
316 views

How to set #value to the form item from HTML data-*?

In product.tpl.php I have a code like this: <div class="paint-order" data-pid="<?php print $node->field_product_ref['und'][0]['product_id']; ?>"> With JQuery I can get this product_id ...
1
vote
1answer
42 views

Custom block: How to know you're in an admin context?

I've developed a custom block which relies on a taxonomy term ID being present in the URL, otherwise it throws a 404. I've placed this block in a panel page (ctools pages), but now when I try to ...
0
votes
2answers
46 views

What is wrong with my render code?

I am trying to create a custom content pane where I would be able to specify 8 values and create 4 divs with 2 values in each one of them. For this I am extending cTools module by creating a plugin. I ...
0
votes
1answer
77 views

Debugging panels visibility rule with custom access check plugin

I created a ctools access plugin for use with visibility rules in panels. When I click to add the rule, my rule "Site Installation Profile" shows in the list. I click it and click continue and my form ...
3
votes
0answers
117 views

Is it possible to have a batch job run in a modal

I created a form that on submit it creates a CSV file via batch API. It works perfectly when submitting the form regularly but can't get it to work from a Ctools modal. Could it be that it just isn't ...
1
vote
1answer
154 views

View using views content pane not updating on node save

On the home page, I have a view content pane to display the latest 3 blog items. When I save a new blog node I don't see my new item on the home page. The only way to get it to show up is to flush ...
1
vote
0answers
204 views

Custom panels page not showing page title

I have some custom panels pages I have created and have added the Page Title pane to page content. However, the Page Title pane is only rendering when the page is in a menu and we're on the url in ...
0
votes
0answers
185 views

Combining Page Manager Search with Drupal core search

I'm in need of a search solution for panels, and Page Manager Search seems to be the only one out there that doesn't involve Apache Solr. The problem I'm having with integrating it into my site is ...
0
votes
2answers
188 views

How to add comment to a node with ajax (ctools modal)?

I' trying to create custom module that should add comment to a content type in a modal window, with ajax. I wrote following code, but when I click on the 'Add review' link, browser loads new page when ...
-1
votes
1answer
795 views

.attr('target','_blank'); does not work [closed]

I have a custom module with differents forms and on one of these forms i want to submit and open the result on a new tab. I found a way to do this on this link : custom form submit in a new browser ...
0
votes
3answers
362 views

show a form in a popup when a button is pressed

I am creating a registration form it has multiple stages. I am able to redirect to another page with the help of a link. How can i get the form as a popup with a button. $form['adding_disease']=...
1
vote
1answer
38 views

Ctools Multi step form throws error when form_validate is from another file

Ctools Multi step form throws error when form_validate is from another file even I had included the file using module_load_include. As per this example I used a function not from the current file but ...
0
votes
0answers
23 views

How can I add multiple modals to a site?

Of course there are many ways to add modals, I've been sandboxing a lightweight method leveraging ctools; but how would I add several distinct modals to a site? I have thought about making a modal ...
0
votes
1answer
146 views

ajax pager working depends on if js file is loaded in module .info file

I'm using the code I've outlined in my blog post for a custom image search, and I'm having a problem with the pager, but only on one site. The first page of results renders just fine, but when I try ...
0
votes
1answer
274 views

custom module to create multiple forms with pop-ups

I am working on a custom module to create a form. Functionality of the module is as follows: The first form has an url, on clicking the url it should show another form as a pop-up. How can i call ...
0
votes
0answers
30 views

How to automatically add module dependencies to feature with Ctools exportables?

I created an API module with a hook_schema(), where one table has an 'export' key to make the entries exportable with ctools (as features). Now specific entries of this module may depend on specific ...
0
votes
0answers
1k views

How to debug AJAX request errors

PHP errors will be debugged from "Error Logs". I am working on ctools ajax popup forms. And I always get ajax error. An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows....
1
vote
0answers
17 views

ctools pop up comment from

Hello I need to create a pop up comment form for content type. I wrote this code function ajax_comment_menu() { $items = array(); $items['ajax_comment/%ctools_js/comment/reply/%node'] = array( ...
0
votes
1answer
83 views

The simplest way of get an emerging modal window

I want to open a modal emerging window, with some HTML on it and a close button. It should open when the user visits the page. What is the simplest way of doing that and what modules should I use? I ...
0
votes
2answers
924 views

How can I display a login and registration form, with an extra field on registration, and hybridauth in a modal?

I need to display a modal login and registration form if a user accesses a particular page. On the registration form, I need to collect a phone number. I need to show the hybridauth login on the ...
0
votes
1answer
73 views

Multistep form makes same submissions

I created a Ctools Multistep form. Its working fine. But when a user opens this multistep form in two tabs and fill the form fields simultaneously and submits it, both the submitted forms have same ...