Questions tagged [chaos-tool-suite]

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

134 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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 ...
3
votes
0answers
115 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 ...
3
votes
0answers
295 views

How can I return data from ctools modal to parent form

Let's say I have a Drupal form with a "Open popup" button and a text field. If user clicks on the button, I'd like to open ctools modal popup with two buttons (#3 and #4). Clicking on any button in ...
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['...
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. ...
2
votes
0answers
171 views

Dismiss Ctools popup on click of a button(running on ajax) inside ctools popup

I have created a ctools popup in which I have 2 buttons(add to cart and add to wishlist) which run on ajax.I have used Commerce Ajax Add to Cart module(https://www.drupal.org/project/dc_ajax_add_cart) ...
2
votes
0answers
66 views

Ctools 7.x-1.9 update breaking ajax entity lookup

I am having an issue with ajax entity lookup, i upgraded Ctools to the latest 7.x-1.9 and i now have an issue searching for articles in the entity reference autocomplete field, it seems the ajax ...
2
votes
0answers
1k views

how to resize the dialog generated by “ctools-use-modal” class of ctool modal functionality?

I want to resize the popup dialog box, appears when I used ctool modal functionality. I have gone through a patch , but don't know how to apply it. I also follow one this link, but is of no worth. My ...
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 "...
2
votes
1answer
120 views

How to keep the same vertical tab open on AJAX call?

We're using vertical tabs on a configuration form for a ctools content type inside Panels. Inside most of these vertical tabs, there are "Add more" buttons, which use AJAX to add another item to the ...
2
votes
0answers
262 views

Ctools Modal on input change - not submitting

I am trying to load a modal popup when selecting an item in a select list. I can get the modal to launch with the new form inside but pressing save button does not do anything. Looking at the logs, ...
2
votes
1answer
191 views

Missing group audience field(og) from node add form by panel

I have 2 content types, and they are Organization(group) and Contact(group content) From Contact, I add the group audience field and bundle with Organization. When I use the node/add/contact from ...
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 ...
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 ...
2
votes
0answers
2k views

Ctools custom relationship plugin (context)

I am trying to create a custom ctools relationship plugin Create a custom context based on another context With the data from the required context I want to provide some tokens When I create a ...
2
votes
0answers
85 views

VotingAPI and Browser Fingerprinting

I need better methods of ruling out cheaters in anonymous voting contests. I'm using VotingAPI + vote_up_down, and those use ctools in some fashion for ajax. I'm looking for any suggestions that ...
2
votes
0answers
568 views

how to use ctools Wizard (custom modal) to show my custom form?

I look at the ctools ajax demo. there I look at the form wzards. They are so nicely displayed in popup window. I want the similar functionality for my comment form. So how can I use this functionality ...
2
votes
0answers
1k views

Creating a custom context

I want to create a custom context. However I can't seem to get it working. I have seen the following from api.text. Adding a condition or reaction plugin Both context conditions and reactions ...
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
1answer
95 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 ...
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
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 ...
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
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 ...
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( ...
1
vote
1answer
99 views

How to prevent closing CTools modal window with ESC during AJAX?

How can I prevent closing CTools modal window with ESC key during AJAX request?
1
vote
0answers
29 views

Plugin form block not displaying block title

I have a custom ctools plugin for D7, which displays a form inside of a block. But when I set the block's title, it doesn't display on the page with the block on it. However, if I set the block's ...
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 ...
1
vote
1answer
79 views

Open link as modal form or normal form based on user role

I wish to have a link 'Post Ad': For anonymous user: a modal login form will be displayed to request log in. For logged in user: a normal ad posting form. I managed to use the ctools for modal ...
1
vote
0answers
79 views

Can't access %node context keywords in Panels & Panelizer

Context keyword sunstitutions for the node being displayed are showing up blank! Latest drupal installation with Dev versions of Panels, Panelizer, ctools, etc... I have a node type that has 2 ...
1
vote
0answers
37 views

Is it possible to use ctools modal for showing modal upon modal(multiple modals)

I need to show node full view in modal and again in full view there is one form to be shown in modal.
1
vote
1answer
150 views

Using Ctools, how do I render a managed_file from system form?

I'm adding some fields to Drupals site-information form. Textfields and managed_file fields. Images are uploaded there and not in my panel panes edit form. Now I want to make the additional fields I'...
1
vote
0answers
103 views

Passing a variable content to a modal dialog

I have a iFrame with a embedded Youtube video on it. When the user click in a button while the video is playing I want to open a modal window where the user can enter some note related to the video ...
1
vote
0answers
455 views

Ctools popup is not working

Ctools popup is not working for me. Sharing the effort i made. Any suggestion will be appreciated.. function my_test_menu() { $items = array(); $items['my_test/page'] = array( 'title'=> 'my ...
1
vote
0answers
69 views

How do I override a panel pane admin title?

I am trying to provide an overview to my site's admins of what each panel pane is exactly doing by trying to provide extra information in views panes, as I have panel pages with many regions and panes....
1
vote
1answer
40 views

Cannot enable node_view in ctools page_manager permanently

I have a strange problem. If I enable node_view in page_manager everything works as expected and the node layout is according to my settings. If I then do a menu cache clear node_view is not used ...
1
vote
1answer
234 views

CTools modal return incorrectly return html instead of ajax commands

I am trying to create custom login form using Ctools modal window. There seems to be a problem upon submitting the correct username and password. The page callback function is supposed to return a ...
1
vote
2answers
767 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?
1
vote
0answers
26 views

Template file in admin theme not looked for in admin theme

As documented here, I've created a custom filefield source that gets images from Apache Solr, and I'm using this in conjunction with the Insert module. I wanted to add some additional markup for ...
1
vote
0answers
20 views

Is there a way to create one panel page for multiple i.e 7,8 view displays

A view has 7-8 displays … all of them are pages. I want them to layout (i.e the page) when any of the 7 pages is visited the view content should come up in the left pane of a panel i.e col-sm-8(...
1
vote
0answers
387 views

Collapsible text in Drupal 7 - tried several guides, need for dummies version

Running Drupal 7.39 and CorporateClean theme and Ctools module installed. I want to be able to have sections of collapsable text. I read the following (and some others, which I can't link due to ...
1
vote
0answers
273 views

Modal login form throws AJAX HTTP error

I am working on a custom module that will allow remote authentication via an API if a user attempting to log in is not an administrator. The module first does a hook_form_alter and in that function ...
1
vote
0answers
170 views

How to set (import) oembed's ctools exportable settings as defaults for the module programmatically?

Oembed provides defaults for some providers (e.g. youtube, twitter etc) out of the box. It also provides the ability to export each provider's settings through the UI. I have added a new URL pattern ("...
1
vote
0answers
35 views

how to chnage appearance and look and feel of pop-up modal with CTools in drupal?

how to remove header in pop-up modal with CTools? resizing of pop-up modal with CTools?
1
vote
1answer
590 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 ...
1
vote
0answers
123 views

How can i get Page Manager to load a new page.tpl.php file and override the current one?

I’ve created a new layout (.tpl.php) and is complete with an .info file. It contains a region I call a super_footer. I want this to load only on certain content types and I’ve been attempting to use ...
1
vote
1answer
131 views

Status message prompted twice

I am opening my registration form in ctools modal popup. I have applied custom module to get that popup. Once user submit any form ajax window will be dismiss using ctools_modal_command_dismiss()....
1
vote
0answers
129 views

Openlayers PDO PDOException: Column not found: 1054 Unknown column 'identifier'

I installed openlayers 3.X and used it a little bit. Then I uninstalled openlayers 3.x and installed openlayers 2.x. Now when I click on openlayers > maps I get the following error. PDOException: ...
1
vote
0answers
110 views

Error 500 on /admin/user/permissions

For some reason, ctools/includes/plugins.inc is requiring an .inc file that doesn’t exist (and doesn’t need to exist in this custom module, as far as I know), and on /admin/user/permissions, that’s ...
1
vote
1answer
184 views

How to integrate webform into multi form wizard into drupal 7

I am trying to integrate webform into multiform wizard in drupal 7. but its not working, i dont have any idea how to integer it. if it is not possible to integrate awebform into multiform wizard then ...