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
0answers
12 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
16 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
8 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() ...
0
votes
0answers
23 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
47 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 ...
0
votes
0answers
15 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 ...
0
votes
0answers
7 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
24 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 ...
0
votes
1answer
24 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 ...
0
votes
1answer
13 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
20 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 ...
0
votes
0answers
19 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
44 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
13 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: ...
0
votes
0answers
23 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
24 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
22 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 ...
0
votes
0answers
13 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
1answer
26 views

How to implement the regional to the Drupal content

I want create some features to help add regional to the Drupal content, exaple: Need show different content according to which the state (region of residence) is selected for a specific content on the ...
1
vote
0answers
34 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 ...
0
votes
1answer
19 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
39 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
23 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 ...
0
votes
1answer
24 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
21 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
23 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
37 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
277 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
51 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
379 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
38 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
90 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
73 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
157 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
54 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() { ...
0
votes
0answers
66 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. ...
1
vote
0answers
15 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
votes
0answers
104 views

Ajaxify ctools multistep wizard in flexiform [on hold]

The 'Next' button has ctools-use-ajax without ctools-use-ajax-processed ever being added. So, upon clicking the button I get json rather than the ajax being processed. This happens in flexiform ...
0
votes
0answers
45 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 ...
1
vote
0answers
55 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
83 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
17 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 ...
0
votes
1answer
72 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 ...
1
vote
0answers
46 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
135 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
207 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 ...
0
votes
0answers
12 views

Is there any way to make panels styles fieldable?

I'm looking to be able to set a background image for a panel pane. I'm aware of Fieldable Panels Panes, and am currently using this for the solution. However, it would be Optimal if ALL style ...