Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

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
56
votes
2answers
20k views
31
votes
2answers
11k views

What's the difference between Page manager and Panels?

I'm writing this question, because I see confusion all over the Drupal community about "what is Page manager", and "what is Panels".
12
votes
4answers
6k views

How to render a ctools content type programmatically?

I have a ctools plugin aka. content-type aka. panel pane. How does one render it programmatically ?
10
votes
3answers
3k views

AJAX calls in CTools Content Type Plugin?

I'm building a CTools Panels Content Type (i.e., that thing you insert into panels when adding content, not a type of node) and I am trying to use a form item's #ajax attribute to set some default ...
8
votes
2answers
5k views

How to theme Panels properly?

I am using Page Manager and Panels, providing custom node panels with selection rules by type (e.g. one panel variant for article-, one panel variant for blog-content type). This works smooth so far, ...
6
votes
2answers
14k views

How to load a node edit form using Ctools module in Drupal 7

I am trying to load a node edit form into a modal frame using Ctools. The following is the function I am using. So far the $op = 'view' part is working fine, but I cannot get the node edit form to ...
6
votes
2answers
6k views

How to load modal form on page load using ctools?

I have an issue to show modal form on page load. This form will have 3 steps to submit. I've found CTools will suit the best. I'm newbie in drupal, that's why I've looked all tutorials ctools. Every ...
6
votes
1answer
1k views

When creating a Chaos Tools content type plugin, what is a subtype and how are they used?

I'm perfectly fine with creating Chaos Tools content types for use in Panels, but I've always used single => TRUE. I've looked through the docs, but still can't quite seem to grok how to utilise ...
5
votes
1answer
4k views

What operators and functions can I use in a Views “Global: Math expression” field?

When you create a "Global: Math expression" field in Views, the following help appears beneath the Expression field: Enter mathematical expressions such as 2 + 2 or sqrt(5). You my assign variables ...
5
votes
2answers
2k views

Panels page variant that targets a single node

I am a little new to Panels, but I am using it to manage layouts for different content types and it is working out really well. However I want to be able to create a page variant that will only target ...
5
votes
2answers
439 views

What is the difference between a view mode and a style plugin?

It is possible that you can define the difference between a view mode and a style plugin. As far as I understand a view mode defines what fields are outputted and a style plugin decides how to render ...
5
votes
2answers
1k views

How to render a Views Content Pane programmatically?

I have a view which displays all content of type "news" which is tagged with a specific tag, e.g. "world" (passed as parameter to the view). The view machine name is news. It has a display of type ...
5
votes
1answer
12k views

Drupal 7 - How to get AJAX response displayed in a ctools modal?

I want to create a ctools modal popup when a button is pressed. function custom_form( $form, &form_state ) { $form['btn'] = array( '#type' => 'button', '#value' => t('add'), '#...
5
votes
2answers
2k views

How to display a form in a panel page?

My goal is to display a form in a page made with panels. The form will be between content panes. The single page (made with page manager & panels) will be like below: Content Pane Form Content ...
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 ...
4
votes
2answers
4k views

Views: Use default value from URL for contextual filter, THEN show all if default value empty?

Short version, general question: You want to pipe in a 'Default value', specifying a URL argument, to a contextual filter in Views 3. You also want all results (the full unfiltered view) to be ...
4
votes
1answer
63 views

How do I include linked data to a Page in Page manager?

Given two pieces of data, for example two entities, two nodes; when viewing one of them, how do I pull in data for the other one into Page manager/Panels?
4
votes
1answer
11k views

How do I create a form in a modal dialog with Drupal 7?

There seems to be many solutions for implementing a modal dialog including Ctools, Colorbox, Simple dialog, and Ctools Auto-modal. I'm not sure which is the best to use for simple coding through the ...
4
votes
1answer
253 views

How to make a style plugin available only for certain types of panes?

I'm trying to simplify the admin UX on a site with a few different custom style plugins. I have plugins A, B, C, and D. I want plugins A and B only to be able to be applied to menu block panes. I ...
4
votes
1answer
2k views

Caching Panel page variants

I don't believe I have never run into this before, but I have a Panels page with a few variants based on selection rules. Is there a way that you can serve up cached results for the whole page (not ...
4
votes
1answer
1k views

Collapsible Search Bar

I have an exposed form (from a view) in a block. I'd like to make this block collapsible so that a user is presented with a search box and one other field and when a user types in the search box the ...
4
votes
1answer
773 views

Page Manager and Panels settings — where do they live?

I'm continuing my quest to make every piece of common site architecture into something that can be displayed in a View. Right now I'm on Panels panes and Page Manager pages. I have a site that is ...
4
votes
0answers
962 views

Difference between using features, strongarm & ctools exportable api [closed]

Whats the difference between using features, strongarm or the ctools export api to export config settings? I cannot use the features modules so I need to find an alternative because its not part of ...
3
votes
2answers
5k views

Add close button in ctools model dialog

I am using ctools modal dialog/popup window to display some records. The default close button is working fine. How can I add a custom close button? Thanks
3
votes
2answers
2k views

Use Optional Arguments in a Panels Path

I am porting an existing custom form that takes optional arguments from the URL to preload some fields. I can not use the ?q= method because I must maintain backwards compatibility. For example, both ...
3
votes
2answers
1k views

How to convert a command line table (drush output) to any spreadsheet? (csv,excel,ods)

I often use commands like drush pm-list or drush views-list to get some listings of what my current project is using and for sake of usability I would like to import that stuff in a spreadsheet ...
3
votes
1answer
2k views

Ctools modals without AJAX

What's the sanest way to present a Ctools modal to the user while bypassing the normal AJAX workflow? For example, how could I show a completely JavaScript-generated "Are you sure you want to log out?"...
3
votes
3answers
1k views

Can Crumbs be used with Panels?

I'm building a site with Panels (and Panels Everywhere, with a custom theme based on Precision) and trying to customize the breadcrumbs for particular nodes based on their content type. The Crumbs ...
3
votes
1answer
5k views

How to use custom modal with ctools and triggered by a button form

I'm using ctools to render my node form. And my quesiton is how to insert the custom style for the popup window. I know how to use the custom style in the text button. but I don't know how to use it ...
3
votes
3answers
4k views

Panel Pages and Taxonomy Term Arguments

I am working on a new Drupal 7 site that is making heavy use of Panels to build pages. I have a page where a view will be added to a content pane. For various reasons, the view cannot be its own ...
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 (...
3
votes
1answer
1k views

How do I implement Ctools plugins from other modules?

I have a module which defines a plugin. Using this code, I can easily load the plugin: ctools_include('plugins'); ctools_get_plugins('mymodule','myplugin'); That works great, but I would like my ...
3
votes
1answer
345 views

Removing second copy of ctools module from filesystem

I have a site where two version of ctools are on the filesystem. The first version is in sites/all/modules - this is correct and where I want it The second version is in sites/all/modules/contrib - ...
3
votes
1answer
1k views

Any better popup modal framework in drupal

I use the Chaos tool suite module for modal popup in Drupal 7; I am unable to open popup from within a popup using ctools. Can it be done using ctools, or is there any better popup modal module in ...
3
votes
1answer
175 views

Page Manager on a variant of the node url

I have overriden the default /node/%node layout using panels and the page manager, now I need to add some different content when the URL is /node/%node/step2. I have added a variant, and on the ...
3
votes
1answer
487 views

Is there a way to integrate revisioning with Panels + CTools content types?

I'm using CTools content types to make highly customized Panels panes. The panes together form a Panels Node (I'm using the Panels default module for this). The Panels node itself can be revisioned, ...
3
votes
2answers
817 views

Ctools multistep form cache

I, like other people on here it seems, have been trying to build a multi-step form using this tutorial about how to use the Ctools wizard to do so. My ultimate goal is to replace the registration form ...
3
votes
1answer
4k views

How to bind javascript to ctools modal load

I have a ctools modal popup that has no Drupal generated form but an external iframe that loads a form into ctools modal. I have some jQuery codes to be invoked when the iframe gets reloaded (ie. to ...
3
votes
1answer
245 views

How to add tabs to panels setting page?

I want to add additional vertical tabs (marked with red) in screenshot, but have had no luck with google or documentation. How does one add tabs here?
3
votes
2answers
2k views

How to use $contexts in Page Manager

Im trying to make a selection rule for variants in Page manger and it includes some data comparison so it has to be in php. My field data is inside the context, so the $contexts variable can be used, ...
3
votes
0answers
116 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
296 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
1answer
464 views

What is the best way to tell anonymous users apart?

My company wishes to split their website so that anonymous users are given slightly different sites based on a question when they first visit. I intend to use a cookie to store the answer to the ...
2
votes
2answers
3k views

CTools CSS cache error

While viewing my Status report, I came across this error under the CTools CSS Cache header: The CTools CSS cache directory, ctools/css could not be created due to a misconfigured files directory. ...
2
votes
1answer
3k views

How do I provide a page manager page override for my custom entities using ctools plugins

I have a custom entity type implemented, this is essentially identical to what the Model module provides, with extra integrations. I'm wanting to use panels and page manager to template my entity ...
2
votes
5answers
692 views

Split node edit tab in several tabs with panels (or programmatically)

I have a content type with many fields, so that loading node/%node/edit is a pain ! In order to split node edit form in smaller forms (menu tabs), I used Page Manager. What I did so far Enable the ...
2
votes
1answer
4k views

Opening a ctools modal on form submit

I have a custom profile form (part of a multi-step registration process) that requires a modal to be displayed once submitted. I am not clear on what the process is for this to happen, and the ...
2
votes
1answer
305 views

How do I pass the nid of the current node to the first step multistep modal form?

I am using the ctools plumbing to create a nodal form. This is what the relevant part of my code now looks like: /** * Implements hook_entity_view_alter(). */ function mymodule_entity_view_alter(&...
2
votes
1answer
5k views

Fatal error: Call to undefined function ctools_include() While implementing Drupal 6 Multistep Form Using Chaos Tools

I would like to implement a multi-step user registration form. After a long time googling, I found Intro to Drupal 6 Multistep Form Domination Using Chaos Tools. While I was trying to implement the ...