Questions tagged [chaos-tool-suite]
The module contains a set of APIs and tools to improve the developer experience.
328 questions
1 vote
0 answers
46 views
What is the equivalent of ctools_export_load_object()?
In Drupal 7, I would use the following code. $objects = ctools_export_load_object($type, 'names', array($name)); What is the equivalent code in Drupal 9? I unsuccessfully tried with the following ...
0 votes
1 answer
54 views
ctools module keeps getting unloaded?
I keep getting this error while trying to access content using The Course module. Call to undefined function ctools_get_plugins() To my understanding this means the ctools module is not loaded, ...
0 votes
1 answer
43 views
How to allow access to page variant (Page Manager) if user belongs to list
The Situation I have an ECK entity called "Event" in my Drupal 7 site. I have an entity reference field on Event that collects users who flag the Event with a non-global flag called "...
0 votes
0 answers
117 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
1 answer
782 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
1 answer
85 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
1 answer
230 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
0 answers
631 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
0 answers
162 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
0 answers
231 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
0 answers
155 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
0 answers
447 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
1 answer
199 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
0 answers
56 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
0 answers
782 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 ...