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
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
509 views

How to implement Bootstrap validation? [closed]

I'm trying to implement jQuery plugin - Bootstrap Validator in Drupal. This is the js which I have used. jQuery(document).ready(function() { jQuery('#cta-form').bootstrapValidator({ ...
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
1answer
205 views

Unable to override ctools selection plugin class from my module

I am trying to add a custom ctools selection plugin for entity reference field as explained Here but it is never bing called but it is calling the parent class (...
0
votes
1answer
67 views

Can you do branching multistep forms in ctools?

I'm using the ctools multistep form code in a couple of places in a project, and would like to branch the user's path through the form. That is, in step 1, I get some stuff from the user that allows ...
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
80 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.
0
votes
1answer
295 views

How to get a drupal path in a modal form?

I would like to have a specific path in a modal form. I tried several things but cannot get i work. Modal_form I installed the module, clear cached and added into a body tekst the example of the ...
1
vote
1answer
151 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'...
0
votes
1answer
85 views

Change the Default “ - Choose -” text in Ctools Jump menu?

I've created a Ctools jump menu in a block in a module. The default text which Ctools provides for their jump menu is "- Choose -". Is there a way to change this in the module? I'm guessing it should ...
1
vote
1answer
58 views

How to print node id in a block in a module?

I have created a ctools jump menu in a block in a module. I need to get the node id for use in the links. How can I get the node id printed in the block? Here is my code; <?php function ...
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 ...
0
votes
1answer
98 views

use “php code” in page manager access rules to evaluate if current og_group has content of a specific type

I'm grateful for the amazing organic groups module (and so many other drupal modules), which I am using for a civil society and social economy network platform. I have a question, which I think would ...
0
votes
1answer
91 views

How to enable contextual links for views content panes?

If I do not enable module "Views content panes", I see all block generated by Views in "Miscellaneous" category. When I insert such block in my panels, contextual links are displayed well fore each ...
0
votes
1answer
73 views

Page Manager user/%user/edit selection rule only called when user has 'administer users' permission

I have a page manager page for user/%user/edit. This page has a selection rule, for which I wrote a ctools access plugin. (In my case the selection rule checks if the logged in user is the owner of ...
1
vote
0answers
457 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 ...
0
votes
1answer
19 views

Send to 403 page if all Selection Rules aren't met for all Variants

I have a couple Variants set up for my node type with Selection Rules via Page Manager. If for some reason none of the rules are met for all the variants, it renders the node using the default node ...
0
votes
1answer
117 views

Multiple Node Variants with Different Paths

I have my node content type set up using Page Manager. I have different variants for this content type that pass different arguments to my view. Is there any way to have these variants have different ...
0
votes
1answer
85 views

How to interruput ajax request but keep for next possible uses?

I want to add simple confirmation box for ajax delete action created via: ctools_ajax_text_button JS: (function ($) { Drupal.behaviors.mymod = { attach: function (context, settings) { ...
1
vote
1answer
236 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 ...
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 ...
2
votes
1answer
2k views

How to close (ctools) modal node/add form after submit?

I wrote this module that print the node/add form for a content type (article) in a ctools modal window. It works and the new node is saved, but the modal window remains opened after submitting the ...
0
votes
1answer
280 views

Update webform without losing existing webforms

I'm using webform 7.x-3.20 version and I want to to upgrade it to 7.x-4.x, but I've 7 to 8 existing webforms whenever I update this I'm losing my previous webforms cause of changed table structure. If ...
1
vote
2answers
769 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
875 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: ...
3
votes
2answers
1k views

Load a panels display in code

To load a Panel display from the database we can use panels_load_display($did) However, the $did value is an autoincrement value from the database. It is not present in exported Panel page displays (...
0
votes
0answers
111 views

CTools Modal AJAX Webform onchange submit problem

I want to submit form on radio button change, it works, but form is submitted twice and i got JSON error on confirmation page. I'm using this function: function surveySubmit() { $("form").one("...
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 ...
0
votes
0answers
130 views

Ctools form submission json response broken by VPN

I have a ctools modal form implementation in my intranet site which works normally within the office premises. However when accessed from outside using a VPN, the submission seemed to fail without ...
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) ...
1
vote
2answers
464 views

Ajax not output to Ctools modal when using pager

So in my continuing quest to display a form with Solr search results in a Ctools modal window and use a pager, I've managed to get everything to display fine after the initial search, but when I use ...
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(...
0
votes
1answer
238 views

Table not rendered using ajax_render in ctools modal window

This is a continuation from this question,where I'm wanting to display a form for searching Apache Solr and displaying the results with a pager. I've modified my approach to have the search run from ...
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 ...
0
votes
1answer
1k views

How to pass argument in ctools_modal_form_wrapper?

A very strange issue come across while using ctools_modal_form_wrapper and ctools-use-modal. I have written a menu item and passed two arguments in it. $items['a/b/c/d/e/%/edit/%ctools_js'] = array( ...
0
votes
2answers
726 views

Automatically close webform after submission

I have created a Webform with some terms & condition. I have added this webform in node/upload page. When user access node/upload page webform comes as overlay on the page. When user selects all ...
1
vote
0answers
390 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 ...
0
votes
1answer
64 views

Configuration page in Modal Forms not working

I already install Modal Forms in my localhost website and it worked perfectly, but now when I installed for my online website I can’t make any change in the configuration page, always forbidden page ...
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 = : ...
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
1answer
273 views

What is a “Variant” in Drupal?

I tried to read a bit about what is actually a Variant in Drupal (and especially in Ctools). But the 2-3 explanations I read were not clear enough for me. It was a wired experience for me since I've ...
0
votes
2answers
118 views

Ctools multistep returning user

I am trying to implement a multistep registration form where if the user drops off the first step I then email them a link several weeks later for them to continue to step-2 http://example.com/user/...
2
votes
1answer
30 views

Is there Page bulk manager? [closed]

I tried to look for bulk page manager for Drupal 7, but I wasn't successful. More specifically, I'd like to change access settings for multiple pages in one step. Something similar to what VBO ...
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?
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 ...