The Chaos Tool Suite is a module containing a set of APIs and tools to improve the developer experience.

learn more… | top users | synonyms

0
votes
1answer
24 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
50 views
+100

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
0answers
18 views

How can I determine if a pane is of page manager panel or mini panel, within hook_panels_pane_content_alter()?

In one of our modules we have hook_panels_pane_content_alter() implementation, where we are required to identify whether the pane is from a page manager panel or mini panel. Thanks in advance!
0
votes
0answers
13 views

Modal window appearing when user enters site (using CTools module)

I would need a simple working example of a modal window (form) appearing when the user enters a website the first time. I would like to use CTools Modal windows. So far, I have this code (which ...
0
votes
0answers
13 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 ...
0
votes
0answers
30 views

Ctools - How to Add a confirm dialog before closing the modal?

I am using ctools modal window to display a form. How can I add a confirm dialog, when the user tries to close the modal?` function my_module_menu() { $items = array(); $items['my_module/page'] = ...
0
votes
1answer
15 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?
0
votes
0answers
10 views

Ajax form submission - empty fields validation - not working

I have created a form using ctools modal. In form validation callback function I'm not able to set form_set_error messages for empty fields. Infact, after debugging a specific field having empty ...
1
vote
0answers
26 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
21 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 ...
0
votes
0answers
14 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
21 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
17 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 ...
0
votes
0answers
25 views

How to return values back to parent 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 ...
0
votes
0answers
14 views

Module ctools error - Call to undefined method stdClass::get_human_name()

After than i migrate a drupal site, my site shows a white screen. When i saw the httpd log error with the following: PHP Fatal error: Call to undefined method stdClass::get_human_name() ../sites/all/...
0
votes
0answers
28 views

How to get CSS class in anchor tag in views field without rewriting the link

I have a content type called person. If a person clicks on their picture, then a modal form should open with all the details of that person. Therefore I am using modal_forms module. They describe to ...
1
vote
1answer
49 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
21 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
10 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
33 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
28 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
21 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
25 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
22 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
47 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
17 views

How to put a ctools modal link button into a view

I have a view of users, and I need to have a button in the view, which opens a ctools modal. The ajax path will include the uid of each user in the view. Here's my button: ctools_modal_text_button(t(...
0
votes
0answers
26 views

Ctools Jump Menu on Ctools Modal

I seem to be hitting a wall on a Drupal 7 project. I have a form that I am displaying using Ctools Modal. This form has a select box / jump menu that essentially needs to reload the same form in the ...
0
votes
1answer
28 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
25 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
19 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
35 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
21 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
0answers
54 views

Load ctool popup on every page without link

I am working in a task where I am having a link once user click on that link ctool popup works fine for me. link page callback is something like below. function mymodule_callback(){ $popup_content = ...
0
votes
1answer
12 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
0answers
26 views

CTools collapsible content and JW player issues

Im using views to display node teasers with comments and the comments and comment form are in a collapsible div using CTools with the following code in my node.tpl.pho file: <?php if (!empty($...
0
votes
1answer
30 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
0answers
24 views

Make node revisions view use the node_view display

I have seen several D.O Issues about being able to take use of the revision module together with panels/page manager. I have tried all the patches on those issues and nothing seems to fix the issue. ...
0
votes
1answer
25 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
45 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
1answer
402 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
52 views

Modal to popup on read more click

I have made a slider with content and read more link by using view. How to make Read more showing full node text in modal dialog ? Also If user has permission show Edit link for editing current ...
1
vote
1answer
480 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
0answers
24 views

Bringing Profile2 page/form in ctools modal form view

I am using drupal 7 Profile2 and Profile2 Registration Path modules. I have URL like this www.example.com/customer/register, so how can I bring this form in ctools modal view?
0
votes
1answer
48 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
118 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
93 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
198 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
60 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("...
0
votes
0answers
81 views

Webform AJAX modal - close modal after submit

I need to close modal automatically after webform submit. I'm using webform AJAX module with ctools modal. Right now I'm using this code as confirmation message: <p>Message has been sent ...
0
votes
0answers
12 views

Can I back up and restore specific sets of entities?

One of my Drupal 7 projects has many accounts, each with their own set of data held in custom entity types. One desired feature is the ability to back up and restore each account's data independently. ...